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
Problem: The training target is boolean and the predicted target is string. When calling the score method, it throws an error.
catboost version: 1.0.3
Operating System: Windows 10
CPU: -
GPU: -
CatBoostError Traceback (most recent call last)
----> 1 clf.score(np.array([[0,1,2],[2,3,4]]), np.array([[True],[False]]))
\my_env\lib\site-packages\catboost\core.py in score(self, X, y)
5032 raise CatBoostError('predicted classes have string type but specified y is numeric')
5033 elif np.issubdtype(y.dtype, np.bool_):
-> 5034 raise CatBoostError('predicted classes have string type but specified y is boolean')
5035 return np.mean(np.array(predicted_classes) == np.array(y))
5036
CatBoostError: predicted classes have string type but specified y is boolean
The text was updated successfully, but these errors were encountered:
Problem: The training target is boolean and the predicted target is string. When calling the score method, it throws an error.
catboost version: 1.0.3
Operating System: Windows 10
CPU: -
GPU: -
Throwing the following error
The text was updated successfully, but these errors were encountered: