You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.
I am seeing a Deprecation Warning in code line number two where the "plot_sgd_separator()" function is called. The warning is as follows.
DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and willraise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample.
The text was updated successfully, but these errors were encountered:
@sahaia1 This is due to the error in line p = clf.decision_function([x1, x2])
the decision_function gives this warning as it expects an input of the type [[]].
Just do what it says.
Store the x1, x2 values in a numpy array and reshape it using the reshape(1, -1)
I am seeing a Deprecation Warning in code line number two where the "plot_sgd_separator()" function is called. The warning is as follows.
DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and willraise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample.
The text was updated successfully, but these errors were encountered: