
Computicket
Kitap & Hobipython - Found input variables with inconsistent numbers of samples error
Teaching RandomRorest - Here's the code: X_train, X_test, y_train, y_test = train_test_split (X, y, test_size = 0.8, random_state = 241) RFC = RandomForestClassifier (n_estimators = 37, random_state = 241) RFC.fit (X_train, y_train) scor_test = [] for predict in RFC.predict_proba (X_test): x_scor = log_loss (y_test, predict) scor_test.apend (x_scor) After executing the last block, error: ValueError Traceback
Code: X_TRAINStarts: 6/16/2022
Get Deal →