UBISS2024exam
#Comment here:
#
#
from everywhereml.sklearn.ensemble import RandomForestClassifier
#Comment here:
#
#
max_leaf_nodes = 30
#Comment here:
#
#
clf = RandomForestClassifier(n_estimators=100, max_leaf_nodes=max_leaf_nodes)
#Comment here:
#
#
clf.fit(X_train, y_train)
#Comment here:
#
#
print(f'Score: {clf.score(X_test, y_test):3.3f}')