From the course: Building Deep Learning Applications with Keras
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Model predictions and evaluation
From the course: Building Deep Learning Applications with Keras
Model predictions and evaluation
- [Instructor] Now under Chapter 4, we will start with "Make Predictions Begin." Now that our model is trained, it's time to see how well it performs on data it hasn't seen before, which is our X test reshaped. So let's go ahead and start coding. So we will define preds scaled equal to model .predict x test reshaped. So this line uses the model to make predictions based on the test features. Then we will say preds = scaler .inverse transform preds scaled. Now remember previously, we scaled our data so that way our model could learn more effectively while this predictions are in that scaled form. So we need to convert them back to their original scale to make sense of them, that's why we are using inverse transform. It undoes the scaling so we can compare the predictions to the actual values. So we want to visualize them. In order to visualize them, we will stay here and say, plot the predictions against the actual values. Now that we have the actual values inverse transformed. And we…