Pytorch, Machine Learning, Gradient Descent, Python, Hands On Tutorials.
plt.scatter(x, y, facecolors='none', edgecolors='b') plt.plot( [x.min(), x.max()], [weight * x.min() + bias, weight * x.max() + bias], c='r') plt.show() Figure 2. L2-learned linear boundary on toy problem. Visualizing the Loss Function The above seems a reasonable fit, but so far everything has