I have been reading Random Forest documentation and I am confused about how you apply your cross-validated model (based on your training data) to your testing data in order to make classification predictions.
My code is as follows but I have no idea on how I use this to predict? Normally you would fit the model and then call predict, but I've read you don't have to call 'fit' with Random Forest - so then how do I call predict if I haven't called fit first? So confused!
`clf = RandomForestClassifier(n_estimators=10, max_depth=None,
min_samples_split=2, random_state=0)
scores = cross_val_score(clf, X_train, y_train, cv = 10, scoring='precision')
y_pred = clf.predict(X_test)`
#NotFittedError: Estimator not fitted, call fit
before exploiting the model.