Postingan

Menampilkan postingan dengan label valueerror unknown label type 'unknown'

45 valueerror: unknown label type: 'unknown'

Gambar
PYTHON : ValueError: Unknown label type: 'unknown' - YouTube PYTHON : ValueError: Unknown label type: 'unknown' [ Beautify Your Computer : ] PYTHON : ValueError: Unknown label ... Python ValueError: Unknown Label Type: 'continuous' Causes of ValueError: Unknown label type: 'continuous' in Python Python interpreter throws this error when we try to train sklearn imported classifier on the continuous target variable. Classifiers such as K Nearest Neighbor, Decision Tree, Logistic Regression, etc., predict the class of input variables. ValueError: Unknown label type: 'unknown' in sklearn Sorted by: 2 Part 1 The error that you get is related to the y variable that you use. You need to transform the TRUE/FALSE into 0/1 so that the Y variable will contain 0s and 1s. This should fix the error. From the documentation see here : y : array-like, shape (n_samples,) Target values (class labels in classification, real numbers in regression) ...