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))
Discussion 0
Join free to post in the discussion.
Related questions
- Predicting a flat price in rupeesMachine Learning Engineer
- One gradient descent stepMachine Learning Engineer
- Sigmoid at zeroMachine Learning Engineer
- Logistic regression with five classesMachine Learning Engineer
- The naive part of Naive BayesMachine Learning Engineer
- Entropy of a 50/50 nodeMachine Learning Engineer
- Tree with no depth limitMachine Learning Engineer
- Prediction after one boosting roundMachine Learning Engineer