...

/

Solution Review: Building the Network

Solution Review: Building the Network

Make predictions on the test data and evaluate the model's performance.

Predictions on test data

Make predictions on test data and evaluate the model performance.

The predict method

The predict method takes in the testing features and predicts the labels.

Press + to interact
# make probability predictions with the model
predictions = model.predict(X_test)

The evaluate method

The method can take test features and labels and evaluates the modelโ€™s performance.

Press + to interact
# evaluate the model's performance
loss_and_metrics = model.evaluate(X_test, Y_test)

Load the saved model using the load_model ...