Challenge
Aufgabe
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 5
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Suggested prompts:
Zusammenfassen Sie dieses Kapitel
Code in file erklären
Erklären, warum file die Aufgabe nicht löst
Awesome!
Completion rate improved to 3.85
Challenge
Swipe um das Menü anzuzeigen
Aufgabe
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 5
single