Examples built with TensorFlow.js
Clone or download
Latest commit 33a6a0c Oct 13, 2018
Permalink
Failed to load latest commit information.
.vscode snapshot Mar 7, 2018
addition-rnn Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
baseball-node Update @tensorflow/tfjs-node to 0.1.18 (#142) Oct 4, 2018
boston-housing Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
cart-pole Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
custom-layer Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
getting_started Upgrade tfjs from 0.11 to 0.12 in examples (#105) Jul 5, 2018
iris Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
lstm-text-generation Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
mnist-core Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
mnist-node Remove custom progress bar and used the default one in tfjs-node 0.1.… Oct 8, 2018
mnist-transfer-cnn Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
mnist Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
mobilenet Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
polynomial-regression-core Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
polynomial-regression Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
sentiment Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
translation Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
tsne-mnist-canvas Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
webcam-transfer-learning Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
website-phishing Bump all @tensorflow/tfjs dependency versions to 0.13.2 (#150) Oct 13, 2018
.gitignore Add yalc.lock to .gitignore (#139) Sep 20, 2018
CONTRIBUTING.md snapshot Mar 7, 2018
LICENSE snapshot Mar 7, 2018
README.md update babel config to target newer browsers, work around parcel bug (#… Apr 16, 2018
deploy.sh Move Python scripts for building examples into tfjs-examples (#38) Mar 30, 2018
update-tfjs-version Add script for automatic updating @tensorflow/tfjs version of examples ( Oct 13, 2018
yarn.lock Support user-supplied text data; configurable text data urls; (#115) Jul 22, 2018

README.md

TensorFlow.js Examples

This repository contains a set of examples implemented in TensorFlow.js.

Each example directory is standalone so the directory can be copied to another project.

Dependencies

Except for getting_started, all the examples require the following dependencies to be installed.

How to build an example

cd into the directory

If you are using yarn:

cd mnist-core
yarn
yarn watch

If you are using npm:

cd mnist-core
npm install
npm run watch

Details

The convention is that each example contains two scripts:

  • yarn watch or npm run watch: starts a local development HTTP server which watches the filesystem for changes so you can edit the code (JS or HTML) and see changes when you refresh the page immediately.

  • yarn build or npm run build: generates a dist/ folder which contains the build artifacts and can be used for deployment.

Contributing

If you want to contribute an example, please reach out to us on Github issues before sending us a pull request as we are trying to keep this set of examples small and highly curated.