Question 21
You are training a Multi-Layer Perceptron (MLP) using Scikit-Learn's MLPClassifier for a binary classification task. However, some implementations contain syntax errors. Which of the following implementations are syntactically correct? Select all that apply.
from sklearn.neural_network import MLPClassifierfrom sklearn.datasets import make_classificationfrom sklearn.model_selection import train_test_splitfrom sklearn.preprocessing import StandardScaler
X, y = make_classification(n_samples=1500, n_features=30, random_state=42)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
scaler = StandardScaler()X_train = scaler.fit_transform(X_train)X_test = scaler.transform(X_test)
model = ----------------- #fill in the blankmodel.fit(X_train, y_train)