Challenge
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 5
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 3.85
Challenge
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 5
single