From the course: Applied AI for IT Operations (AIOps)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Testing the time series model - Python Tutorial
From the course: Applied AI for IT Operations (AIOps)
Testing the time series model
- [Instructor] In this video, we will test the model we built earlier using the test data set. Please note that for predicting each data point with the test data set, we have the previous 168 data points from actual data. In order to test, we first process the test data set with the same create_rnn_dataset function to associate each data point with the previous 168 data points. Then we use the evaluate function to evaluate the model. For comparison sake, we will predict for both the training data set and the test data set. In order to review the results, we will need to do an inverse transform to convert them from the standard scale to the same scale as the original values. Let's run this code now. Now, let's plot the predictions obtained to see how they match up against the original data. The total size of the plot would be the combined size of the predictions on training and testing. First, we get the original data from the data frame and convert it to the same shape as that of the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Time series forecasting2m 27s
-
(Locked)
Recurrent neural network (RNN) and long short-term memory (LSTM)1m 37s
-
(Locked)
Preparing sequence data4m 8s
-
(Locked)
Building an LSTM model with Keras2m 19s
-
(Locked)
Testing the time series model2m 30s
-
(Locked)
Forecasting future service loads with Keras3m 10s
-
-
-
-
-