You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
forecast() takes 1 positional argument but 2 were given #3
And thanks to open an issue to inform me this jotting code, I will find another time to optimize the algorithm.
Yes it worked! 😊
Now I am wondering how to get forecast values as print_forecasted_results() only print original and forecast values from self.analyzed_results as checked in grey_class.py
Now I am wondering how to get forecast values as print_forecasted_results() only print original and forecast values from self.analyzed_results as checked in grey_class.py
Activity
RSerSYQ commentedon Jan 8, 2021
Did you solve this question?I have met the same question, thanks!
Kalvar commentedon Jan 8, 2021
Hi, It works for:
gm11.period = 2
gm11.forecast()
And thanks to open an issue to inform me this jotting code, I will find another time to optimize the algorithm.
muhdzubair commentedon Jan 11, 2021
Yes it worked! 😊
Now I am wondering how to get forecast values as print_forecasted_results() only print original and forecast values from self.analyzed_results as checked in grey_class.py
@Kalvar if you can guide. Thanks.
no-trick-pony commentedon Feb 19, 2021
@muhdzubair
If you look at the
gm11class and the forecast method there, you will see that it returns the output of the internal__forecastmethod, which is an array ofgrey_forecastobjects - see: https://github.com/Kalvar/python-GreyTheory/blob/master/greytheory/packages/models/grey_forecast.pySo you can simply do:
gm11also stores the result internally, so you could also do:Restore legacy GM11 forecast calls and cover reported zero cases