As easy as I can make torchjs01.html (Linear Regression)

This matches our torch01.py logic. It uses 3 fixed inputs and 3 targets where Target = Input * 2.

We define a myModel with 1 input and 1 output, then train it to find the pattern.
Click the button to train, then click the black box below to edit the code and try different learning rates or epochs.



...