Skip to content
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

EGARCHMReg predict error #170

Open
ramdhan1989 opened this issue Jun 18, 2022 · 0 comments
Open

EGARCHMReg predict error #170

ramdhan1989 opened this issue Jun 18, 2022 · 0 comments

Comments

@ramdhan1989
Copy link

Hi, anyone can help how to use predict in EGARCHMReg? I got this error :

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-56-dfcdc33a1b08> in <module>()
----> 1 modelx.predict(180,final_returns, intervals=False)

C:\Users\Owner\Anaconda3\envs\pyflux\lib\site-packages\pyflux\garch\egarchmreg.py in predict(self, h, oos_data, intervals)
    765             X_oos = np.array([X_oos])[0]
    766             X_pred = X_oos[:h]
--> 767             lmda, Y, scores = self._model(self.latent_variables.get_z_values())
    768             date_index = self.shift_dates(h)
    769 

ValueError: too many values to unpack (expected 3)

I used same dataset in example part of documentation.

modelx.predict(180,final_returns, intervals=False)

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant