As easy as I can make torchjs04.html (Weight and Bias)
This matches our torch04.py logic. We want the AI to find the rule y = 2x + 1.
Inputs: [1, 2, 3] | Targets: [3, 5, 7]
We start with a random myWeight and myBias and let the "nudge" (gradient descent) find the correct values.
Click the button to train, then edit the myLearningRate in the code to see how it affects speed!