Pytorch, Machine Learning, Gradient Descent, Python, Hands On Tutorials.
pylab.get_cmap('terrain') fig, ax = plt.subplots() plt.xlabel('Bias') plt.ylabel('Weight') i = ax.imshow(losses, cmap=cm, interpolation='nearest', extent=[-5, 8, -5, 8]) model_weights, model_biases = zip(*models) ax.scatter(model_biases, model_weights, c='r', marker='+') ax.plot(model_biases,