-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on forecasting method #6
Comments
It is not exactly the "test" data, but the necessary lags used to forecast. On a first order model (as pyFTS.models.chen.ConventionalFTS) all you need to forecast t+1 is the last lag, i. e., a list with the last value of the time series. If you are using a high order model (pyFTS.models.hofts.HighOrderFTS) you will need more past lags. Not all methods are projected to work with multiple steps ahead forecasting, but on the FTS.predict method there is a parameter "steps" where you can indicate the forecasting horizon you need. In this case the method will feedback its outputs for each step ahead. Don't hesitate to contact us if you have more questions! Best regards. |
Thank you for the response, although I'm still a bit confused. I will try pyFTS to forecast water quality parameters, our objectives are to forecast at least 3-day ahead of time and able to predict if the parameters will be above a certain threshold. Definitely I'll ask more questions regarding the use of pyFTS. Again thank you. |
Hi! Check this out: https://colab.research.google.com/drive/1yeaYrgasByD12JI-nEIlE_buQft3YR3I The minimal input length for the predict method is the order of the model! To forecast multiple steps ahead you just need to use the parameter steps_ahead, indicating how many steps to forecast. About the water quality time series, is it seasonal? Mono or Multivariate? How looks its ACF? |
It is a public dataset? |
Unfortunately it is not, this was recorded from our treatment facility. Are you interested with the data? Please provide me with your email address and maybe I might get an approval from my superiors. Regards |
Can you share your code for verification? I'm working on a pyFTS tutorial for solar forecasting and the results are very good (texts in portuguese), around 5% of error (MAPE): https://colab.research.google.com/drive/1xfonrM853rtWTsVet7oJsFO-OoHWRgk6 The quality of a FTS model depends on several factors: The default values of the FTS methods generally fit well on data. But depending on you application domain it is necessary to perform a parameter fine tuning . This hyperparameter optimization can performed using a genetic algorithm (I like to use the DEAP library for evolutive optimization: https://github.com/DEAP/deap) or specific hyperparameter optimization library such as hyperopt (https://github.com/hyperopt/hyperopt). I hope I have helped, but still in contact for any questions! |
Thank for your time and effort! Regards train=data_mod['2012':'2016']['Turbidity'].values |
Looks fine to me! Try higher order models to improve the accuracy. Best regards! |
did you have example code to use hyperparam technique for pyFTS package ? |
Hi @ramdhan1989 ! Please check the issue #30 |
I'm new to fuzzy logic and I'd like know why the predict method requires the test set of the data?
Another question is does the method predict only one-step ahead?
Regards
The text was updated successfully, but these errors were encountered: