[go: nahoru, domu]

Skip to content

Latest commit

 

History

History

getting-started

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

TensorFlow.js Example: Getting Started

This minimal example loads tfjs from a CDN, builds and trains a minimal model, and uses it to predict. Edit index.js and load index.html in your browser to test small snippets.

Run the demo

  1. Install the required dependencies:
yarn install
  1. Start the server using the following yarn command:
yarn watch
  1. The console logs include the address of the server: http://127.0.0.1:1234

Follow the address to load the model and make a prediction. The predicted result will display on the page.