Sarimax fit for prediction further into future

I want to fit sarimax model of statsmodels so that it is optimized for predicting into future not just the next sample. Let's say predicting 5 time steps ahead. I can do this by model.forecast(5) but what I am trying to do is actually fit the model like this so it learns how to best predict 5 time steps ahead. Is it possible?

Topic statsmodels arima time-series

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.