Which benefit of a JavaScript machine learning library allows models to run directly in the browser with interactive updates?
What HTML element would you use to include a JavaScript machine learning library from a CDN in a web page?
Which environment typically uses npm to install packages for server-side JavaScript machine learning tasks?
In a simple sequential model used for machine learning in JavaScript, what does 'sequential' describe?
If you create a dense layer to accept one numeric feature per example, what inputShape should you set?
Which optimizer is used in the compilation step of the example to train the model predicting y from x?
For a simple regression task predicting numbers (for example, y = 2x - 1), which loss function is appropriate in the example?
When preparing five input values [0, 1, 2, 3, 4] as a 2D tensor with one feature each, what shape should you use?
Using the function y = 2x - 1 from the example, what is the correct output when x = 3?
Which browser technology is commonly used by JavaScript machine learning libraries to speed up computations using the GPU?