hurwitzlab/viral-learning

Name: viral-learning

Owner: Hurwitz Lab

Description: Deep learning demonstration code.

Created: 2017-11-29 16:56:13.0

Updated: 2017-12-13 17:48:48.0

Pushed: 2018-01-06 02:07:07.0

Homepage: null

Size: 11

Language: Jupyter Notebook

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

viral-learning

Deep learning demonstration code.

Repository Setup

This repository contains Jupyter notebooks, which are not friendly to git. One way to help git handle these files is to set up jq to automatically strip out non-code elements from notebooks on commit.

The following recipe comes from http://timstaley.co.uk/posts/making-git-and-jupyter-notebooks-play-nice/.

First install jq.

Next add the following to ~/.gitconfig. (Note: it may be necessary to specify the full path to jq for tools such as SourceTree.)

e]
ibutesfile = ~/.gitattributes_global

ter "nbstrip_full"]
n = "jq --indent 1 \
    '(.cells[] | select(has(\"outputs\")) | .outputs) = []  \
    | (.cells[] | select(has(\"execution_count\")) | .execution_count) = null  \
    | .metadata = {\"language_info\": {\"name\": \"python\", \"pygments_lexer\": \"ipython3\"}} \
    | .cells[].metadata = {} \
    '"
ge = cat
ired = true

Finally add the following to ~/.gitattributes_global:

ynb filter=nbstrip_full

Demonstration data

The first_try notebook needs two data files:

Install

The first_try notebook requires Jupyter, Keras, and TensorFlow. These can be installed in a virtual environment as follows:

thon3.6 -m venv ~/venv/vl
venv/vl/bin/activate
 $ pip install jupyter keras tensorflow

Run

Start the Jupyter notebook server and run the first_try notebook.

 $ jupyter notebook

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.