Skip to content

Instantly share code, notes, and snippets.

View mrdrozdov's full-sized avatar

Andrew Drozdov mrdrozdov

View GitHub Profile
@mrdrozdov
mrdrozdov / fixed_minus_nofixed.csv
Created April 23, 2017 16:17
fixed_minus_nofixed.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 60 columns, instead of 6 in line 8.
-2,-1,3,0,0,2,0,0,0,0,-4,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,0,0,-1,-1,0,-1,0,0,0,0,1,-1,0,0,-1,0,0,1,0,0,1,0,0,0,1,-1
0,3,1,0,0,1,0,0,0,0,-2,0,2,-1,1,0,0,0,0,0,0,0,0,0,0,1,0,-1,1,-1,-1,0,0,0,0,0,0,0,0,0,2,0,0,0,-1,0,0,-3,0,2,0,0,0,-1,-2,0,0,0,-1,0
0,0,4,0,0,0,0,0,0,0,0,0,-1,1,0,0,0,0,0,0,0,1,-2,-1,0,0,-1,0,2,0,0,0,1,-1,0,-2,0,-1,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,-1,0,0,-2,0
0,1,0,6,1,0,0,0,0,0,0,-1,0,0,0,-1,0,0,0,0,0,2,-2,2,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,1,0,-1,0,0,0,-6,0,0,-1,0,0,0,0,0,-1,-1,1,1,0,0,0
0,0,0,0,-6,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,6,0,0,0,0,0,0,-2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0
0,0,2,0,0,-2,0,0,0,0,0,0,0,0,2,1,0,0,0,1,0,0,0,0,2,-3,-3,0,0,0,2,0,0,-3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,-2,0,0,0,0
0,0,0,0,1,0,0,0,0,0,-1,0,2,0,0,0,-1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,-2,0,0,0,0,-1,-1,0,0,1,0,0,0,0,0,0,0,0,0
0,0,0,0,1,0,0,6,0,0,1,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,-7,1,1,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,2,0,0,
@mrdrozdov
mrdrozdov / nofixed_ex5_confmat.csv
Created April 23, 2017 16:12
nofixed_ex5_confmat.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 60 columns, instead of 27 in line 8.
9,1,1,0,0,0,0,0,2,0,4,0,1,0,0,0,0,0,6,0,0,0,2,0,0,0,0,0,2,2,0,0,1,0,0,0,5,1,0,6,0,0,1,0,0,1,0,0,1,1,0,0,0,0,0,2,0,0,0,1
0,27,0,1,0,0,0,0,0,0,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,2,1,0,0,0,0,0,0,0,0,0,4,0,0,0,1,0,0,6,0,0,0,0,0,1,2,0,0,0,1,0
0,0,7,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,24,3,1,1,0,1,0,0,0,0,0,0,1,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,1,0,1,3,0
0,1,0,26,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,2,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,4,8,0,0,1,0,0,0,0,0,1,1,0,1,0,0,0
0,0,0,0,30,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,14,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0
0,0,0,0,0,31,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,6,3,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0
0,1,0,0,2,0,36,0,0,0,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,1,0,2,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0
0,0,0,0,1,0,0,34,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,11,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
2,0,0,0,0,0,0,0,10,0,1,0,1,0,1,0,0,0,3,0,19,1,0,0,0,0,0
@mrdrozdov
mrdrozdov / fixed_ex5_confmat.csv
Last active April 23, 2017 16:13
fixed_ex5_confmat.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 60 columns, instead of 27 in line 8.
7,0,4,0,0,2,0,0,2,0,0,0,1,0,0,0,0,0,6,0,1,0,2,1,0,0,0,1,2,2,1,0,1,0,0,0,4,0,0,5,0,0,1,0,1,0,0,0,0,1,0,1,0,0,1,2,0,0,1,0
0,30,1,1,0,1,0,0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,3,0,2,0,0,0,0,0,0,0,0,0,0
0,0,11,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,25,1,0,1,0,0,0,2,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,3,0,0,0,0,0,0,0,0,1,1,0
0,2,0,32,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,4,2,0,0,0,0,0,0,0,0,0,0,1,2,0,0,0
0,0,0,0,24,0,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,20,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,2,0,0,29,0,0,0,0,0,0,0,0,3,2,0,0,0,1,0,1,0,0,2,3,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0
0,1,0,0,3,0,36,0,0,0,1,0,2,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,2,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0
0,0,0,0,2,0,0,40,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
2,0,2,0,0,0,0,0,13,0,0,0,2,0,1,2,0,0,2,0,15,0,0,0,2,1,1
@mrdrozdov
mrdrozdov / test_confusion_matrix.csv
Last active April 23, 2017 04:34
test_confusion_matrix.csv
46 11 12 0 11 0 17 0 0 3
36 2 29 0 0 1 2 0 24 6
11 2 13 12 8 19 22 12 1 0
3 21 6 21 7 35 0 1 6 0
0 0 0 2 0 86 0 1 11 0
4 6 20 0 3 11 1 2 48 5
2 1 6 0 2 13 74 0 0 2
5 20 32 5 16 4 3 4 3 8
13 11 11 10 10 18 21 5 1 0
5 7 16 0 0 3 0 1 2 66
@mrdrozdov
mrdrozdov / snli-enc-parse.log
Created April 18, 2017 18:20
snli-enc-parse.log
[apd283@log-1 spinn-logs]$ cat snli-17-enc-parse-0.log
17-02-12 22:26:13 [1] Flag values:
{ '?': None,
'actively_decay_learning_rate': True,
'batch_size': 32,
'branch_name': 'master',
'bucket_eval': True,
'ckpt_interval_steps': 5000,
'ckpt_on_best_dev_error': True,
'ckpt_path': '/scratch/apd283/spinn-logs',
@mrdrozdov
mrdrozdov / snli-16-parse.log
Created April 18, 2017 18:18
snli-16-parse.log
[apd283@log-1 spinn-logs]$ cat snli-16-parse.log
17-02-10 02:47:29 [1] Flag values:
{ '?': None,
'actively_decay_learning_rate': True,
'batch_size': 32,
'branch_name': 'back-in-time-pytorch',
'bucket_eval': True,
'ckpt_interval_steps': 5000,
'ckpt_on_best_dev_error': True,
'ckpt_path': '/scratch/apd283/spinn-logs',
@mrdrozdov
mrdrozdov / replace.txt
Created April 17, 2017 02:00
replace.txt
dugong # replace: manatee. query: "manatee animal -bird -cat -dog -insect -florida -az -tiger -boat -deer -horse -pelican -snake -elephant -hippo -turtle"
kinkajou # replace: coati. query: "coati animal -Schwenker -zoo -cat"
uakari # replace: gibbon. query: "gibbon animal -bird"
porpoise # replace: dolphin
platypus # replace: echidna. query: "echidna animal -cat -dog -bird -nebulosa -platypus"
narwhal # replace: whale. query: "whale animal -horse -duck -cat -dog"
@mrdrozdov
mrdrozdov / freeze.txt
Created April 14, 2017 14:27
freeze.txt
$ pip freeze
anaconda-client==1.6.2
argh==0.26.2
clyent==1.2.2
dominate==2.3.1
ipdb==0.10.2
Mako==1.0.6
MarkupSafe==0.23
nose==1.3.7
numpy==1.12.1
@mrdrozdov
mrdrozdov / theano.txt
Created April 14, 2017 14:23
Install theano
# Create and Activate Conda Environment
conda create -n theano-2.7 python=2.7
source activate theano-2.7
# Install Theano
conda install numpy scipy mkl
conda install theano
# Install Other Dependencies
pip install qdarkstyle
@mrdrozdov
mrdrozdov / igan.txt
Created April 14, 2017 14:20
igan.txt
$ THEANO_FLAGS='device=cpu, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64
[n_iters] = 40
[top_k] = 16
[average] = False
[morph_steps] = 16
[model_file] = ./models/outdoor_64.dcgan_theano
[d_weight] = 0.0
[interp] = linear
[batch_size] = 64
[framework] = theano