Traditional Culture Encyclopedia - Weather inquiry - The difference between forecast and predict in python time series model
The difference between forecast and predict in python time series model
For example, in the monthly data with a period of 12 from 2017.01.01 to 017.12.31, the model model is obtained by using ARIMA fitting.
model.get_prediction(start='2017.09.01') will get the predicted value of 2017.09.01-2017.12.31 in the sample calculated by the fitting model;
model. get_forcast(step=5) will get the predicted value of the sample extrapolation for 5 periods, that is, the five months from 2018.01.01 to 2018.05.31;
Note:
model.get_prediction can also be done For prediction of extrapolated values, just set the specific termination period.
- Previous article:Care about a person and fall in love with a city.
- Next article:Four-level landscape composition
- Related articles
- 30 good sentences (less than 15 words)
- Dingxi City, Gansu Province has issued a yellow warning for lightning. What preventive measures should all walks of life take?
- Guangxi, a niche summer resort, is highly recommended.
- It's getting colder and colder, so we can't take a bath every day. How do you wash PP? We are too big to squat! Thank you for your questions.
- What is the weather temperature in March?
- When is the hottest day?
- Four words to describe the sky and the weather
- Spring is here, how to dress a "dress" slim and elegant? The first step is to choose the right skirt.
- The weather in Hangzhou and Yiwu on April 9th.
- Good morning in hot weather.