Challenge
Uppgift
Swipe to start coding
Create an autoregressive model to predict the dataset aapl.csv. After, print the results and the model error.
- Read the
aapl.csvdataset. - Create an autoregressive model (
AutoReg) with 3 lags for theXdata and assign it to themodelvariable. - Fit model to the data and assign it to the
model_fitvariable. - Predict the first 30 values.
- Visualize the results: display the first 30 values of
Xwithin the first call of theprint()function, and first 30 values of thepredictionswithin the second call. - Calculate the RMSE (square root of the mean squared error) and display it.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 4. Kapitel 5
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Sammanfatta detta kapitel
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 3.85
Challenge
Svep för att visa menyn
Uppgift
Swipe to start coding
Create an autoregressive model to predict the dataset aapl.csv. After, print the results and the model error.
- Read the
aapl.csvdataset. - Create an autoregressive model (
AutoReg) with 3 lags for theXdata and assign it to themodelvariable. - Fit model to the data and assign it to the
model_fitvariable. - Predict the first 30 values.
- Visualize the results: display the first 30 values of
Xwithin the first call of theprint()function, and first 30 values of thepredictionswithin the second call. - Calculate the RMSE (square root of the mean squared error) and display it.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 4. Kapitel 5
single