
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split

# Create and train the model
rf = RandomForestClassifier(n_estimators=100, random_state=42)
rf.fit(X_train, y_train)

# Make predictions
y_pred = rf.predict(X_test)
