Eden Adams Apr 2026
# Make predictions on the test set y_pred = model.predict(X_test)
# Train a random forest classifier model = RandomForestClassifier(n_estimators=100) model.fit(X_train, y_train) eden adams
# Split data into training and testing sets X_train, X_test, y_train, y_test = train_test_split(user_data.drop('preference', axis=1), user_data['preference'], test_size=0.2, random_state=42) # Make predictions on the test set y_pred = model