Menu

Evaluating the Model on Test Data

Evaluating the Model on Test Data

The testing dataset contains records that the model has never seen before.

Code

**y_test_pred = model.predict(**

**X_test**

**)**

Explanation

These predictions represent the model's performance on completely unseen data.

This provides a realistic estimate of how the model would perform in real-world situations.