Deep Learning: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
Line 50: Line 50:
</pre>
</pre>
Then delete the space at the end of the file
Then delete the space at the end of the file
OR
<pre>
awk 'BEGIN {RS=""}{ gsub(/\n/,", &") ; print }' first10-10.json > test
</pre>


To explore the categories
To explore the categories

Revision as of 10:21, 3 November 2017

Books

Deep learning primer (video)

AI Playbook by Andreessen Horowitz

Deep Learning

An MIT Press book

Ian Goodfellow and Yoshua Bengio and Aaron Courville

Sutton & Barto 2nd edition

File:Bookdraft2016sep.pdf

Understanding Machine Learning: From Theory to Algorithms

File:Understanding-machine-learning-theory-algorithms.pdf

Presentations

Learn TensorFlow and deep learning, without a Ph.D.

Practice

Khan Academy Linear Algebra

OpenAI Gym

Script to figure out what an space_action is doing

action = 0  # modify this!
o = env.reset()
for i in xrange(5): # repeat one action for five times
    o = env.step(action)[0]
IPython.display.display(
    Image.fromarray(
        o[:,140:142]  # extract your bat
    ).resize((300, 300))  # bigger image, easy for visualization
)

From here

Datasets

Kickstarter dataset

in vim the following:

:%s/\n/,\r/g

Then delete the space at the end of the file

OR

awk 'BEGIN {RS=""}{ gsub(/\n/,", &") ; print }' first10-10.json > test

To explore the categories

jq '.[].data.category.name' Kickstarter_2017-09-15T22_20_48_432Z.json | sort -u > categorylist09

jq '.[].data.category.name' Kickstarter_2017-08-15T22_20_51_958Z.json | sort -u > categorylist08

cat categorylist08 categorylist09 | sort -u > categorylist

Indigogo dataset

Useful file manipulation

jq . filename (for jason queries) (see also Jq json file manipulation)

wc -l filename (counts amount of lines)

head -n 10 filename > filename2 (sends top 10 lines of code to filename2)

NB. sed can't find and replace newlines as it encapsulates the file being streamed and gets rid of the newlines.