Skip to content

Instantly share code, notes, and snippets.

View kcbighuge's full-sized avatar

James Lee kcbighuge

View GitHub Profile
@kcbighuge
kcbighuge / generator.py
Created September 27, 2017 00:26
Generator function for Udacity Face Generation Project
def generator(z, out_channel_dim, is_train=True, alpha=0.2):
"""
Create the generator network
:param z: Input z
:param out_channel_dim: The number of channels in the output image
:param is_train: Boolean if generator is being used for training
:return: The tensor output of the generator
"""
with tf.variable_scope("generator", reuse=(not is_train)):
@kcbighuge
kcbighuge / request_reviews.py
Created October 2, 2017 06:49
script to request udacity review assignment
#!/usr/bin/env python
import sys
import logging
import requests
import time
import pytz
from dateutil import parser
from datetime import datetime, timedelta
utc = pytz.UTC
@kcbighuge
kcbighuge / pytorch_tutorial.ipynb
Last active February 2, 2018 01:04
PyTorch tutorial notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kcbighuge
kcbighuge / submission_request
Created February 9, 2018 18:32
create new submission request
import requests
import json
TOKEN = '... insert your token ...'
headers = {'Authorization': TOKEN, 'Content-Length': '0'}
CREATE_REQUEST_URL = 'https://review-api.udacity.com/api/v1/submission_requests.json'
project_language_pairs = [
{u'project_id': 238, u'language': u'en-us'}, # SDC: Traffic Sign Classification
@kcbighuge
kcbighuge / lesson1-colab.ipynb
Created February 15, 2018 04:02
Lesson 1 from fastai using google colaboratory
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kcbighuge
kcbighuge / Udacity-DLND-face-generation.ipynb
Created April 11, 2018 23:14
Use GANs to generate numbers and faces
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kcbighuge
kcbighuge / infogan-sample-implementation.ipynb
Created July 11, 2018 19:21
InfoGAN sample implementation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
food price
pizza 0
sushi 12
chinese 10
class text
positive Wow... Loved this place.
negative Crust is not good.
negative Not tasty and the texture was just nasty.
positive Stopped by during the late May bank holiday off Rick Steve recommendation and loved it.
positive The selection on the menu was great and so were the prices.
negative Now I am getting angry and I want my damn pho.
negative Honeslty it didn't taste THAT fresh.)
negative The potatoes were like rubber and you could tell they had been made up ahead of time being kept under a warmer.
positive The fries were great too.
Airline Tweets
@VirginAmerica plus you've added commercials to the experience... tacky.
@VirginAmerica seriously would pay $30 a flight for seats that didn't have this playing. it's really the only bad thing about flying VA
@VirginAmerica do you miss me? Don't worry we'll be together very soon.
@VirginAmerica Are the hours of operation for the Club at SFO that are posted online current?
@VirginAmerica awaiting my return phone call, just would prefer to use your online self-service option :(