Skip to content

Instantly share code, notes, and snippets.

Justin Gage gagejustins

View GitHub Profile
gagejustins /
Last active Apr 5, 2018
Code for Twitter algorithm spotlight
import Algorithmia
input = {
"username": "elonmusk",
"auth": {
"app_key": "xxxxxxxxxx",
"app_secret": "xxxxxxxxxx",
"oauth_token": "xxxxxxxxxx",
"oauth_token_secret": "xxxxxxxxxx"
gagejustins /
Last active Mar 23, 2018
Code for sentiment analysis with Twitter demo
#Define your API Key from Algorithmia
apikey = 'YOUR_API_KEY'
#Initialize the Algorithmia client
client = Algorithmia.client(apikey)
#Create an instance of the RetrieveTweetsWithKeyword algorithm
algo = client.algo('diego/RetrieveTweetsWithKeyword/0.1.2')
#Call the algorithm for both of our keywords and store the results
gagejustins /
Last active Nov 9, 2019
Code for my tutorial on CNNs in Pytorch
CNN = SimpleCNN()
trainNet(CNN, batch_size=32, n_epochs=5, learning_rate=0.001)
You can’t perform that action at this time.