text_plain_output_1.png
from sklearn.ensemble import RandomForestClassifier

model = RandomForestClassifier()

model.fit(X_train, y_train)

model.score(X_test, y_test)

arr = model.predict(X_test)
arr2 = []
for x in arr:
    if x == 1:
        arr2.append(x)
print(len(arr2) / len(arr))