unknown label type: ‘unknown’ check_classification_targets raise ValueError(“Unknown label type: %r” % y_type)

The solution for “unknown label type: ‘unknown’ check_classification_targets raise ValueError(“Unknown label type: %r” % y_type)” can be found here. The following code will assist you in solving the problem.

y=y.astype(‘int’)classifier.fit(x_train,y_train)

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in