[go: nahoru, domu]

TensorFlow.js: Fitting a curve to synthetic data

Train a model to learn the coefficients of a cubic function.

Description

This model learns to approximate the coefficients of a cubic funtion used to generate the points shown below on the left.

See this tutorial for more details.

Input Data

Original Data (Synthetic)
True coefficients:

Model Outputs

Fit curve with random coefficients (before training)
Random coefficients:
Fit curve with learned coefficients (after training)
Learned coefficients: