Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Examples built with TensorFlow.js

License

NotificationsYou must be signed in to change notification settings

tensorflow/tfjs-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains a set of examples implemented inTensorFlow.js.

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

Overview of Examples

Example nameDemo linkInput data typeTask typeModel typeTrainingInferenceAPI typeSave-load operations
abalone-nodeNumericLoading data from local file and training in Node.jsMultilayer perceptronNode.jsNode.jsLayersSaving to filesystem and loading in Node.js
addition-rnn🔗TextSequence-to-sequenceRNN: SimpleRNN, GRU and LSTMBrowserBrowserLayers
addition-rnn-webworkerTextSequence-to-sequenceRNN: SimpleRNN, GRU and LSTMBrowser: Web WorkerBrowser: Web WorkerLayers
angular-predictive-prefetchingNumericMulticlass predictorDNNBrowser: Service WorkerLayers
baseball-nodeNumericMulticlass classificationMultilayer perceptronNode.jsNode.jsLayers
boston-housing🔗NumericRegressionMultilayer perceptronBrowserBrowserLayers
cart-pole🔗Reinforcement learningPolicy gradientBrowserBrowserLayersIndexedDB
chrome-extensionImage(Deploying TF.js in Chrome extension)ConvnetBrowser
custom-layer🔗(Defining a custom Layer subtype)BrowserLayers
data-csv🔗Building a tf.data.Dataset from a remote CSV
data-generator🔗Building a tf.data.Dataset using a generatorRegressionBrowserBrowserLayers
date-conversion-attention🔗TextText-to-text conversionAttention mechanism, RNNNode.jsBrowser and Node.jsLayersSaving to filesystem and loading in browser
electronImage(Deploying TF.js in Electron-based desktop apps)ConvnetNode.js
fashion-mnist-vaeImageGenerativeVariational autoencoder (VAE)Node.jsBrowserLayersExport trained model from tfjs-node and load it in browser
interactive-visualizersImageMulticlass classification, object detection, segmentationBrowser
iris🔗NumericMulticlass classificationMultilayer perceptronBrowserBrowserLayers
iris-fitDataset🔗NumericMulticlass classificationMultilayer perceptronBrowserBrowserLayers
jena-weather🔗SequenceSequence-to-predictionMLP and RNNsBrowser and NodeBrowserLayers
lstm-text-generation🔗TextSequence predictionRNN: LSTMBrowserBrowserLayersIndexedDB
mnist🔗ImageMulticlass classificationConvolutional neural networkBrowserBrowserLayers
mnist-acgan🔗ImageGenerative Adversarial Network (GAN)Convolutional neural network; GANNode.jsBrowserLayersSaving to filesystem from Node.js and loading it in the browser
mnist-core🔗ImageMulticlass classificationConvolutional neural networkBrowserBrowserCore (Ops)
mnist-nodeImageMulticlass classificationConvolutional neural networkNode.jsNode.jsLayersSaving to filesystem
mnist-transfer-cnn🔗ImageMulticlass classification (transfer learning)Convolutional neural networkBrowserBrowserLayersLoading pretrained model
mobilenet🔗ImageMulticlass classificationConvolutional neural networkBrowserLayersLoading pretrained model
polynomial-regression🔗NumericRegressionShallow neural networkBrowserBrowserLayers
polynomial-regression-core🔗NumericRegressionShallow neural networkBrowserBrowserCore (Ops)
quantizationVariousDemonstrates the effect of post-training weight quantizationVariousNode.jsNode.jsLayers
sentiment🔗TextSequence-to-binary-predictionLSTM, 1D convnetNode.js or PythonBrowserLayersLoad model from Keras and tfjs-node
simple-object-detection🔗ImageObject detectionConvolutional neural network (transfer learning)Node.jsBrowserLayersExport trained model from tfjs-node and load it in browser
snake-dqn🔗Reinforcement learningDeep Q-Network (DQN)Node.jsBrowserLayersExport trained model from tfjs-node and load it in browser
translation🔗TextSequence-to-sequenceLSTM encoder and decoderNode.js or PythonBrowserLayersLoad model converted from Keras
tsne-mnist-canvasDimension reduction and data visualizationtSNEBrowserBrowserCore (Ops)
webcam-transfer-learning🔗ImageMulticlass classification (transfer learning)Convolutional neural networkBrowserBrowserLayersLoading pretrained model
website-phishing🔗NumericBinary classificationMultilayer perceptronBrowserBrowserLayers

Dependencies

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

How to build an example

cd into the directory

If you are usingyarn:

cd mnist-coreyarnyarn watch

If you are usingnpm:

cd mnist-corenpm installnpm run watch

Details

The convention is that each example contains two scripts:

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

  • yarn build ornpm run build: generates adist/ folder which contains the build artifacts andcan be used for deployment.

Contributing

If you want to contribute an example, please reach out to us onGithub issuesbefore sending us a pull request as we are trying to keep this set of examplessmall and highly curated.

Running Presubmit Tests

Before you send a pull request, it is a good idea to run the presubmit testsand make sure they all pass. To do that, execute the following commands in theroot directory of tfjs-examples:

yarnyarn presubmit

Theyarn presubmit command executes the unit tests and lint checks of allthe exapmles that contain theyarn test and/oryarn lint scripts. Youmay also run the tests for individual exampls by cd'ing into their respectivesubdirectory and executingyarn, followed byyarn test and/oryarn lint.

About

Examples built with TensorFlow.js

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp