Random Forest
What is Random Forest?
Random Forest Classifier
Importing:
from sklearn.ensemble import RandomForestClassifier
Training the module:
clf = RandomForestClassifier(random_state=42)
# Creating a Random Forest classifier object
clf.fit(X_train, y_train)
# Training the classifier on the training dataMaking predictions:
y_pred = clf.predict(X_test)Last updated

