0

ValueError: Unknown label type: 'continuous-multioutput'

Traceback (most recent call last): File "C:\Users\zhenis\Downloads\FlexBot\TendonContinuumLimb\ControlSignalToLimb.py", line 115, in <module> clf.fit(X_train,y_train) File "C:\Users\zhenis\AppData\Local\Programs\Python\Python39\lib\site-packages\sklearn\ensemble\_forest.py", line 331, in fit y, expanded_class_weight = self._validate_y_class_weight(y) File "C:\Users\zhenis\AppData\Local\Programs\Python\Python39\lib\site-packages\sklearn\ensemble\_forest.py", line 559, in _validate_y_class_weight check_classification_targets(y) File "C:\Users\zhenis\AppData\Local\Programs\Python\Python39\lib\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-multioutput'

1st Mar 2021, 10:22 AM
Отарбай Анар
Отарбай Анар - avatar
2 ответов
+ 2
where is the code and what is your question??
1st Mar 2021, 2:40 PM
iTech
iTech - avatar
0
Hi, I got the same error and below are the train and test info ---X_Training columns-------- <class 'pandas.core.frame.DataFrame'> RangeIndex: 6650 entries, 0 to 6649 Data columns (total 8 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 Age 6650 non-null int64 1 Balance 6650 non-null float64 2 Vintage 6650 non-null int64 3 Transaction_Status 6650 non-null int64 4 Credit_Card 6650 non-null int64 5 Credit_Category 6650 non-null int32 6 Product_Holdings 6650 non-null int32 7 Gender 6650 non-null int32 dtypes: float64(1), int32(3), int64(4) ---y_training columns--- <class 'pandas.core.frame.DataFrame'> RangeIndex: 6650 entries, 0 to 6649 Data columns (total 8 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 Age 6650 non-null int64 1 Balance 6650 non-null float64 2 Vintage 6650 non-null int64 3 Transaction_Status 6650 non-null int64 4 Credit_Card 6650 non-null int64 5 Credit_Category 6650 non-null int32 6 Product_Holdings 6650 non-null int32 7 Gender 6650 non-null int32 dtypes: float64(1), int32(3), int64(4) when i fit into the model rf.fit(X_train,y_train) i got the error message of ValueError: Unknown label type: 'continuous-multioutput'
11th Mar 2022, 3:09 PM
Sri