Datazource / tfjs-examples

Examples built with TensorFlow.js

Home Page:https://js.tensorflow.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TensorFlow.js Examples

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

Each example directory is completely standalone so you can copy the directory to another project.

How to build an example

To build an example, first cd into the directory and run yarn to install the dependencies of the example, and yarn watch to build it, for example:

cd mnist-core
yarn
yarn watch

Details

The convention is that each example contains two scripts:

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

  • yarn 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.

About

Examples built with TensorFlow.js

https://js.tensorflow.org/

License:Apache License 2.0


Languages

Language:JavaScript 60.7%Language:Python 19.3%Language:HTML 11.6%Language:Shell 6.0%Language:CSS 2.4%