Solution Review: Building the Network
Make predictions on the test data and evaluate the model's performance.
We'll cover the following...
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 modelpredictions = 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 performanceloss_and_metrics = model.evaluate(X_test, Y_test)
Load the saved model using the load_model
...