Skip to content

Instantly share code, notes, and snippets.

View llSourcell's full-sized avatar

Siraj Raval llSourcell

View GitHub Profile
# Load relevant libraries
import numpy as np
import pandas as pd
import seaborn as sns
from IPython.display import Image
import matplotlib.pyplot as plt
%matplotlib inline
from pathlib import Path
import random
import os
# Code in file nn/two_layer_net_module.py
import torch
class TwoLayerNet(torch.nn.Module):
def __init__(self, D_in, H, D_out):
"""
In the constructor we instantiate two nn.Linear modules and assign them as
member variables.
"""
super(TwoLayerNet, self).__init__()
export function fetchUser(address) {
return async function(dispatch) {
try {
const user = await origin.users.get(address)
dispatch({
type: UserConstants.FETCH_SUCCESS,
user,
})
} catch(error) {
[
{
"id": 0,
"country": "ARE",
"city": "abu dhabi",
"lat": 24.453884,
"lng": 54.377342,
"deans": [
"Abdul Qureshi"
],

Week 1 - Introduction

  • Introduction
  • Crop Yield Maximization
  • Text Classification
  • Insurance Analysis
Topics Covered
Markov Decision Processes, Policy Functions, Value Functions, and the Bellman Equation

Week 2 - Dynamic Programming

python3 sraval/Desktop/mo_Caffe.py --input_model Downloads/VGG16_faster_rcnn_final.Caffe*model --input_proto sraval/Downloads/deploy.prototxt --extensions sraval/Downloads/fasterrcnn_extensions

// array of poses/persons
[
{ // pose #1
"score": 0.42985695206067,
"keypoints": [
{ // nose
"position": {
"x": 126.09371757507,
"y": 97.861720561981
},
import keras
# Step 1 - Load Data
(X_train, y_train), (X_test, y_test) = load_data()
# Step 2 Build Generative model (U-NET)
g_input = Input(input_size)
conv1 = Conv2D(32, (3, 3), activation='relu', padding='same')(g_input)
#deps
#!pip install cython
#!pip install spacy
#1 - make rects
#pseudo random number generator, dimensions of rectangle
from random import random
#OOP 0:)
class Rectangle: