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
/usr/lib/python2.7/site-packages/sklearn/utils/validation.py:395: DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and will raise 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.
DeprecationWarning)
(test-classifier.py:19890): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
Hi swapgit,
If your data is not a numpy array then use np.array(data) first.
For your example type(if you may have more than one feature):
temp = temp.reshape(1,-1)
For one feature:
temp = temp.reshape(-1,1)
when i run i got this error:
/usr/lib/python2.7/site-packages/sklearn/utils/validation.py:395: DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and will raise 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.
DeprecationWarning)
(test-classifier.py:19890): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
(test-classifier.py:19890): Gtk-CRITICAL **: IA__gtk_type_unique: assertion 'GTK_TYPE_IS_OBJECT (parent_type)' failed
(test-classifier.py:19890): Gtk-CRITICAL **: IA__gtk_type_unique: assertion 'GTK_TYPE_IS_OBJECT (parent_type)' failed
(test-classifier.py:19890): Gtk-CRITICAL **: IA__gtk_type_new: assertion 'GTK_TYPE_IS_OBJECT (type)' failed
zsh: segmentation fault (core dumped) /usr/bin/python2.7 test-classifier.py -i
Any clue??
The text was updated successfully, but these errors were encountered: