This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index | mid | display_name | |
---|---|---|---|
216 | /m/064t9 | Pop music | |
217 | /m/0glt670 | Hip hop music | |
218 | /m/02cz_7 | Beatboxing | |
219 | /m/06by7 | Rock music | |
220 | /m/03lty | Heavy metal | |
221 | /m/05r6t | Punk rock | |
222 | /m/0dls3 | Grunge | |
223 | /m/0dl5d | Progressive rock | |
224 | /m/07sbbz2 | Rock and roll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function torch_activate | |
set -gx TORCH_BASE_DIR '/home/david/Programming/repos/torch/torch' | |
set -gx LUA_PATH '{$TORCH_BASE_DIR}/install/share/lua/5.1/?.lua;{$TORCH_BASE_DIR}/install/share/lua/5.1/?/init.lua' | |
set -gx LUA_CPATH '{$TORCH_BASE_DIR}/install/lib/lua/5.1/?.so' | |
set -gx PATH {$TORCH_BASE_DIR}/install/bin $PATH | |
set -gx LD_LIBRARY_PATH {$TORCH_BASE_DIR}/install/lib $LD_LIBRARY_PATH | |
set -gx DYLD_LIBRARY_PATH {$TORCH_BASE_DIR}/install/lib $DYLD_LIBRARY_PATH | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
from torch.autograd import Variable | |
from torch.optim import lr_scheduler | |
import torch.utils.data as data | |
from torch.nn.utils.rnn import pack_padded_sequence as pack, pad_packed_sequence as unpack | |
import torchaudio | |
import torchaudio.transforms as tat |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torch.optim as optim | |
import torch.utils.data as data | |
from torch.autograd import Variable | |
from tqdm import tnrange, tqdm_notebook, tqdm | |
"""My attempt at Karpathy's char-rnn from the unreasonableness of RNNs post |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc | |
source ~/.bashrc | |
rbenv install -v 2.2.3 | |
rbenv global 2.2.3 | |
ruby -v |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ftp://ftp.ncdc.noaa.gov/pub/data/cirs/climdiv/climdiv-tmpcst-v1.0.0-20160605 | |
# ftp://ftp.ncdc.noaa.gov/pub/data/cirs/climdiv/state-readme.txt | |
dat = read.table("climdiv-tmpcst-v1.0.0-20160605.csv", colClasses = "character") | |
splitel <- function(x) { | |
statecode = substr(x,1,3) | |
divnum = substr(x,4,4) | |
elcode = substr(x,5,6) | |
year = substr(x,7,10) | |
return(c(statecode, divnum, elcode, year)) |
NewerOlder