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
#!/usr/bin/env bash | |
# Installation script for Deep Learning Libraries on Ubuntu 14.04, by Roelof Pieters (@graphific) | |
# BSD License | |
orig_executor="$(whoami)" | |
if [ "$(whoami)" == "root" ]; then | |
echo "running as root, please run as user you want to have stuff installed as" | |
exit 1 | |
fi | |
################################### |
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 17 columns, instead of 15 in line 6.
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
,CANDIDATE_ID,CANDIDATE_NAME,PARTY,PARTY_CODE,CANDIDATE_OFFICE,CANDIDATE_OFFICE_CODE,CANDIDATE_OFFICE_STATE,CANDIDATE_OFFICE_STATE_CODE,CANDIDATE_OFFICE_DISTRICT,CITY,STATE,ZIP,ELECTION_YEAR,RECEIPT_DATE,REPORT_YEAR,BEGIN_IMAGE_NUMBER | |
0,H8DC00192,"CHEEKS, JOHN C",Independent American Party,IAP,House,H,District Of Columbia,DC,0.0,WASHINGTON,DC,20007.0,2018,18-OCT-18,2018,201810180300238682 | |
1,H8NJ07256,"MOXLEY, DIANE",Green Party,GRE,House,H,New Jersey,NJ,7.0,GARWOOD,NJ,7027.0,2018,17-OCT-18,2018,201810170300237429 | |
2,S8RI00177,"COSTA, MICHAEL",Independent,IND,Senate,S,Rhode Island,RI,0.0,BRISTOL,RI,28099998.0,2018,16-OCT-18,2018,201810169125548990 | |
3,H8PA16094,"BEEMAN, EBERT GORDAN",Libertarian Party,LIB,House,H,Pennsylvania,PA,16.0,ERIE,PA,16510.0,2018,13-OCT-18,2018,201810139124739087 | |
4,H8MD04239,"BISHOP, DAVID ANTHONY DARK HORSE",Libertarian Party,LIB,House,H,Maryland,MD,4.0,ARNOLD,MD,21012.0,2018,12-OCT-18,2018,201810129124516955 | |
5,S8ME00171,"RILEY JR, JAMES N",Unknown,,Senate,S,Maine,ME,0.0,,,,2018,11-OCT-1 |
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
CMTE_ID | AMNDT_IND | RPT_TP | TRANSACTION_PGI | IMAGE_NUM | TRANSACTION_TP | ENTITY_TP | NAME | CITY | STATE | ZIP_CODE | EMPLOYER | OCCUPATION | TRANSACTION_DT | TRANSACTION_AMT | OTHER_ID | TRAN_ID | FILE_NUM | MEMO_CD | MEMO_TEXT | SUB_ID |
---|
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
CMTE_ID | ENTITY_TP | EMPLOYER | OCCUPATION | TRANSACTION_DT | TRANSACTION_AMT | |
---|---|---|---|---|---|---|
C00629618 | IND | PRINCIPAL | DOUBLE NICKEL ADVISORS | 2017-01-03 | 40 | |
C00473249 | IND | RETIRED | 2017-01-20 | 500 | ||
C00397455 | IND | PHARMERICA | CEO | 2017-01-20 | 192 | |
C00264689 | IND | USPS | LETTER CARRIER | 2017-01-18 | 250 | |
C00139659 | IND | SELF EMPLOYED | TRAVEL AGENT | 2017-01-10 | 250 |
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
Survived | Pclass | Sex | Age | SibSp | Parch | Fare | Embarked | |
---|---|---|---|---|---|---|---|---|
1 | 3 | female | 1.0 | 0 | 2 | 15.7417 | C | |
1 | 2 | male | 0 | 0 | 13.0 | S | ||
1 | 1 | female | 1 | 0 | 51.8625 | S | ||
1 | 1 | male | 40.0 | 0 | 0 | 31.0 | C | |
0 | 2 | male | 34.0 | 0 | 0 | 13.0 | S |
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
""" | |
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) |