Computicket

Computicket Deals & Coupon Codes

πŸ‡ΏπŸ‡¦ South Africa β€” 2 deals

python - 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

Get Deal β†’Code: X_TRAIN

Download Now

Available On

Free Download