Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 593 Bytes

File metadata and controls

5 lines (3 loc) · 593 Bytes

TensorFlow.js Example: Fitting a curve to synthetic data

This example shows you how to use TensorFlow.js operations and optimizers (the lower level api) to write a simple model that learns the coefficients of polynomial that we want to use to describe our data. In this toy example, we generate synthetic data by adding some noise to a polynomial function. Then starting with random coefficients, we train a model to learn the true coefficients that data was generated with.

See this example live!