We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2192f5 + f2f0506 commit 9900a76Copy full SHA for 9900a76
01-Linear Regression/Linear_Regression.py
@@ -59,6 +59,8 @@ def forward(self, x):
59
predict = predict.data.numpy()
60
plt.plot(x_train.numpy(), y_train.numpy(), 'ro', label='Original data')
61
plt.plot(x_train.numpy(), predict, label='Fitting Line')
62
+# 显示图例
63
+plt.legend()
64
plt.show()
65
66
# 保存模型
0 commit comments