79362630

Date: 2025-01-16 18:03:26
Score: 0.5
Natty:
Report link

Regression is a classification problem, where the output function y is 0,1 or True, False. Then it is enough to fit_transform your original data.

from sklearn import preprocessing
y = y_train.ravel()
lab = preprocessing.LabelEncoder()
y_transformed = lab.fit_transform(y)
print(y_transformed)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: novice_cplusplus