text_html_output_1.png
from sklearn.ensemble import RandomForestClassifier

from sklearn.ensemble import RandomForestClassifier

from sklearn.metrics import accuracy_score

from sklearn.ensemble import RandomForestClassifier
rf_model = RandomForestClassifier()
rf_model.fit(X_train, y_train)
pred_s = rf_model.predict_proba(X_test)

y_pred = rf_model.predict(X_test)

from sklearn.ensemble import RandomForestClassifier
rf_model = RandomForestClassifier()
rf_model.fit(X_train, y_train)
pred_s = rf_model.predict_proba(X_test)

y_pred = rf_model.predict(X_test)

y_predict = rf_model.predict(X_test)

from sklearn.metrics import accuracy_score
accuracy_score(y_test, y_predict)