Skip to content
RED SAGSkills
easy5 pts · first answer countsmachine-learningscikit-learn

Spot the bug in training code

What is wrong with this code?

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
model = RandomForestClassifier()
model.fit(X_test, y_test)
print(model.score(X_test, y_test))
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions