L1aoXingyu/code-of-learn-deep-learning-with-pytorch

第三章逻辑斯蒂回归的代码问题

mengwei-wang opened this issue · 0 comments

画出参数更新之前的结果

w0 = w[0].data[0]
w1 = w[1].data[0]
b0 = b.data[0]

plot_x = np.arange(0.2, 1, 0.01)
plot_y = (-w0 * plot_x - b0) / w1 # 上面会导致乘法不能正常操作, 应该讲w0,w1,w2转换成numpy array 才能调通