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.
1 parent d6c6571 commit 1e21e82Copy full SHA for 1e21e82
pytorchTUT/302_classification.py
@@ -25,7 +25,7 @@
25
# torch can only train on Variable, so convert them to Variable
26
x, y = Variable(x), Variable(y)
27
28
-# plt.scatter(x.data.numpy(), y.data.numpy())
+# plt.scatter(x.data.numpy()[:, 0], x.data.numpy()[:, 1], c=y.data.numpy(), s=100, lw=0, cmap='RdYlGn')
29
# plt.show()
30
31
0 commit comments