Search⌘ K
AI Features

Predictions and Evaluation

Understand how to preprocess test data consistently with training data, generate predictions using logistic regression on the Titanic dataset, and evaluate model performance by comparing test and training scores to identify areas for improvement.

Our model is trained on the given train subset (X_train_s, y_train).

Test data

Let’s get the predictions for the test data. Since ...