![]() ![]() Zeros and Ones should be classes(categories) like yes and no but if i change them to 'yes' and 'no'i get the error that cannot convert string to float. ![]() I do not know whats the problem because i have just used bigger data set and values based on which I predict the parameters are only 0's and 1's. Multi_output_clf.fit((-1, 1),variables)įor the code above, everything works, but for the code below, i get the error. Multi_output_clf = MultiOutputClassifier(LogisticRegression(solver='lbfgs')) This is the code that works: from sklearn.multioutput import MultiOutputClassifierįrom sklearn.linear_model import LogisticRegressionĭic = ![]() I have tried the same code on some simple dummy database and it works perfectly. I have tried to make my_data to be categorical data, I have tried this my_data = my_data.astype('category'), but it gives me the same error. ValueError: Unknown label type: 'continuous-multioutput' I want to predict multiple outcomes based on one input parameter with scikit-learn's MultiOutputClassifier.įor some reason I always get this error, and I do not know whats the problem: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |