These are quick notes from making my own Formula and Tap.
gobuild.sh
#!/bin/bash
from tqdm import tqdm | |
from tqdm.utils import CallbackIOWrapper | |
file_path = os.path.abspath(__file__) | |
upload_url = https://some-bucket.s3.amazonaws.com | |
file_size = os.stat(file_path).st_size | |
with open(file_path, "rb") as f: | |
with tqdm(total=file_size, unit="B", unit_scale=True, unit_divisor=1024) as t: | |
wrapped_file = CallbackIOWrapper(t.update, f, "read") |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
# Execute with: R --slave -f draw.r | |
library(maps) | |
library(mapdata) | |
library(foreach) | |
library(doParallel) | |
# Use the GoCardless font | |
par(family="Gotham-Book") |
import itertools | |
import numpy as np | |
from sklearn.linear_model import SGDClassifier, SGDRanking | |
from sklearn import metrics | |
from minirank.compat import RankSVM as MinirankSVM | |
from scipy import stats | |