# tfjs-examples **Repository Path**: hackcat_admin/tfjs-examples ## Basic Information - **Project Name**: tfjs-examples - **Description**: Examples built with TensorFlow.js - **Primary Language**: CSS - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-12-24 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TensorFlow.js Examples This repository contains a set of examples implemented in [TensorFlow.js](http://js.tensorflow.org). Each example directory is standalone so the directory can be copied to another project. # Overview of Examples
| Example name | Demo link | Input data type | Task type | Model type | Training | Inference | API type | Save-load operations |
|---|---|---|---|---|---|---|---|---|
| addition-rnn | 🔗 | Text | Sequence-to-sequence | RNN: SimpleRNN, GRU and LSTM | Browser | Browser | Layers | |
| baseball-node | Numeric | Multiclass classification | Multilayer perceptron | Node.js | Node.js | Layers | ||
| boston-housing | 🔗 | Numeric | Regression | Multilayer perceptron | Browser | Browser | Layers | |
| cart-pole | 🔗 | Reinforcement learning | Policy gradient | Browser | Browser | Layers | IndexedDB | |
| custom-layer | 🔗 | (Illustrates how to define and use a custom Layer subtype) | Browser | Layers | ||||
| iris | 🔗 | Numeric | Multiclass classification | Multilayer perceptron | Browser | Browser | Layers | |
| lstm-text-generation | 🔗 | Text | Sequent-to-prediction | RNN: LSTM | Browser | Browser | Layers | IndexedDB |
| mnist | 🔗 | Image | Multiclass classification | Convolutional neural network | Browser | Browser | Layers | |
| mnist-acgan | 🔗 | Image | Generative Adversarial Network (GAN) | Convolutional neural network; GAN | Node.js | Browser | Layers | Saving to filesystem from Node.js and loading it in the browser |
| mnist-core | 🔗 | Image | Multiclass classification | Convolutional neural network | Browser | Browser | Core (Ops) | |
| mnist-node | Image | Multiclass classification | Convolutional neural network | Node.js | Node.js | Layers | Saving to filesystem | |
| mnist-transfer-cnn | 🔗 | Image | Multiclass classification (transfer learning) | Convolutional neural network | Browser | Browser | Layers | Loading pretrained model |
| mobilenet | 🔗 | Image | Multiclass classification | Convolutional neural network | Browser | Layers | Loading pretrained model | |
| polynomial-regression | 🔗 | Numeric | Regression | Shallow neural network | Browser | Browser | Layers | |
| polynomial-regression-core | 🔗 | Numeric | Regression | Shallow neural network | Browser | Browser | Core (Ops) | |
| sentiment | 🔗 | Text | Sequence-to-regression | LSTM, 1D convnet | Browser | Layers | Loading model converted from Keras | |
| simple-object-detection | 🔗 | Image | Object detection | Convolutional neural network (transfer learning) | Node.js | Browser | Layers | Save a trained model from tfjs-node and load it in the browser |
| translation | 🔗 | Text | Sequence-to-sequence | LSTM encoder and decoder | Browser | Layers | Loading model converted from Keras | |
| tsne-mnist-canvas | Dimension reduction and data visualization | tSNE | Browser | Browser | Core (Ops) | |||
| webcam-transfer-learning | 🔗 | Image | Multiclass classification (transfer learning) | Convolutional neural network | Browser | Browser | Layers | Loading pretrained model |
| website-phishing | 🔗 | Numeric | Binary classification | Multilayer perceptron | Browser | Browser | Layers |