Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter_3_logisticRegression_'plot_y = (-w0 * plot_x - b0) / w1' #36

Open
cuijia1247 opened this issue Jul 6, 2019 · 0 comments
Open

Comments

@cuijia1247
Copy link

In[10]:# 画出参数更新之前的结果
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
TypeError
TypeError: mul() received an invalid combination of arguments - got (numpy.ndarray), but expected one of:

  • (Tensor other)
    didn't match because some of the arguments have invalid types: (numpy.ndarray)
  • (Number other)
    didn't match because some of the arguments have invalid types: (numpy.ndarray)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant