Skip to content

Instantly share code, notes, and snippets.

View mrdrozdov's full-sized avatar

Andrew Drozdov mrdrozdov

View GitHub Profile
@mrdrozdov
mrdrozdov / sst.train.txt
Created February 28, 2018 03:59
sst.train.txt
This file has been truncated, but you can view the full file.
14480
14401
14486
1358
5927
2907
549
2522
13735
13937
@mrdrozdov
mrdrozdov / assign4.py
Last active March 1, 2018 15:36
assign4.py
"""
sample code for assign4.py
load_sst can be used to read the files from sst, which can be downloaded from this link:
https://nlp.stanford.edu/sentiment/trainDevTestTrees_PTB.zip
load_embeddings can be used to read files in the text format. Here's a link to
word2vec - https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit?usp=sharing
@mrdrozdov
mrdrozdov / btc.csv
Last active January 23, 2018 15:38
btc.csv
Timestamp Open High Low Close Volume (BTC) Volume (Currency) Weighted Price
2017-11-25 00:00:00 8199.83 8737 8114.78 8717.99 11611.67 97628924.79 8407.83
2017-11-26 00:00:00 8718 9366.6 8538.2 9271.06 12021.22 108525815.45 9027.86
2017-11-27 00:00:00 9278.99 9721.7 9267 9708.07 13272.45 126458117.67 9527.86
2017-11-28 00:00:00 9708.06 9968 9582.25 9868.82 11214.93 110496755.85 9852.65
2017-11-29 00:00:00 9877.63 11395 9250 9824.68 33432.34 346949562.2 10377.66
2017-11-30 00:00:00 9833.7 10618.29 9000 9947.67 25433.46 247093850.76 9715.31
2017-12-01 00:00:00 9927.29 10949.89 9370.11 10840.45 16708.03 171881760.62 10287.37
2017-12-02 00:00:00 10840.45 11200 10637.69 10872 9267.16 101270084.38 10927.84
2017-12-03 00:00:00 10875.68 11800.01 10513.16 11250 14238.53 160176290.44 11249.5
@mrdrozdov
mrdrozdov / fetch_synset.py
Created January 8, 2018 03:05
fetch_synset.py
# fetch_synset.py
import time
from textblob.wordnet import Synset
from nltk.corpus import wordnet as wn
import requests
example_syn = "n02486410"
animal = Synset("animal.n.01")
mammals_file = "mammals_v04_wordnet.csv"
@mrdrozdov
mrdrozdov / fetch_synset.py
Created January 8, 2018 03:05
fetch_synset.py
# fetch_synset.py
import time
from textblob.wordnet import Synset
from nltk.corpus import wordnet as wn
import requests
example_syn = "n02486410"
animal = Synset("animal.n.01")
mammals_file = "mammals_v04_wordnet.csv"
@mrdrozdov
mrdrozdov / 80s.txt
Created December 21, 2017 14:14
80s.txt
1. Nove Settimane e Mezzo (9 ½ Weeks) (1986)
2. Footloose (Footloose) (1984)
3. Rocky III (Rocky III) (1982)
4. Footloose (Footloose) (1984)
5. Dirty Dancing - Balli Proibiti (Dirty Dancing) (1987)
6. Footloose (Footloose) (1984)
7. Il Tempo Delle Mele (La Boum) (1980)
8. Dirty Dancing - Balli Proibiti (Dirty Dancing) (1987)
9. Nightmare II - La Rivincita (A Nightmare on Elm Street Part 2 – Freddy’s Revenge) (1985)
10. Shining (The Shining) (1980)
@mrdrozdov
mrdrozdov / checkins.txt
Created October 29, 2017 19:16
Reddit Make Connections Checkins
Initiated every day at 10:30am AEST, checkins is a time to share
what you are working on or an interesting bit of knowledge if
you'd prefer not to talk about your work.
@mrdrozdov
mrdrozdov / test.labels
Created October 12, 2017 12:00
test.labels
test_labels = [
'caribou',
'coati',
'dingo',
'echidna',
'giraffe',
'jaguar',
'lemur',
'raccoon',
'rhinoceros',
@mrdrozdov
mrdrozdov / indomain.labels
Created October 12, 2017 11:59
indomain.labels
indomain_labels = [
'baboon',
'bat',
'bear',
'beaver',
'bobcat',
'camel',
'cat',
'cheetah',
'chimpanzee',
@mrdrozdov
mrdrozdov / docker-info.txt
Last active October 10, 2017 13:55
docker info
# CPU Only
We have caffe installed using docker on Dexter. Docker is a bit tricky, but it makes installation very simple so it is worth it.
To start a docker container with caffe, use this command:
docker run -v /home/dexter/Developer/caffe-docker/mount:/workspace/mount -ti bvlc/caffe:cpu bash
Here is what you need to know: