Tensor manipulation, then check out the ml5.js library.īuilt on top of TensorFlow.js, the ml5.js library provides access to machine If you want to get started with machine learning without managing optimizers or Go to the web ML course Code ML programs without dealing directly with tensors TheĬourse shows you how to use TensorFlow.js in your websites and applications. Out the Google Developers video course Machine Learning for Web Developers. If you're a web developer looking for a practical introduction to web ML, check Here are more ways to get started with TensorFlow.js and web ML. For a deeper introduction to training models with JavaScript, This tutorial provided a minimal example of using TensorFlow.js to train a model The result of $ 2 * 20 - 1 $ is 39, so the predicted $ y $ value should be Use the model to do inference on a data point the model hasn't seen.ĭocument.getElementById('micro-out-div').innerText = Then it predicts a $ y $ value for the unseen $ x $ value 20 and updates theĭOM to display the prediction. (y = 2x - 1)Ĭonst xs = tf.tensor2d(, ) Ĭonst ys = tf.tensor2d(, ) Generate some synthetic data for training. $ x $ and $ y $ values that satisfy the equation $ y = 2x - 1 $. The exact number will vary, but it should be close to 39. You should see a page title and beneath that a number like 38.31612014770508.
0 Comments
Leave a Reply. |