Skip to content

Instantly share code, notes, and snippets.

@gmyrianthous
Last active August 20, 2023 08:33
Show Gist options
  • Save gmyrianthous/9fb325cc21672cec3f8e4bf05afc3d67 to your computer and use it in GitHub Desktop.
Save gmyrianthous/9fb325cc21672cec3f8e4bf05afc3d67 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "test.py", line 14, in <module>
clf.fit(train_X, train_Y)
File "/usr/local/lib/python3.7/site-packages/sklearn/linear_model/_logistic.py", line 1347, in fit
check_classification_targets(y)
File "/usr/local/lib/python3.7/site-packages/sklearn/utils/multiclass.py", line 183, in check_classification_targets
raise ValueError("Unknown label type: %r" % y_type)
ValueError: Unknown label type: 'continuous'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment