pyflux icon indicating copy to clipboard operation
pyflux copied to clipboard

Website tutorial with wrong argument

Open lgmoneda opened this issue 8 years ago • 1 comments

In http://www.pyflux.com/gas-models/ the GAS model is built with:

model = pf.GAS(ar=2,sc=2,data=financial_crises,family=pf.GASPoisson())

leading to an error:

AttributeError: 'module' object has no attribute 'GASPoisson'

While at the documentation (mkdocs) it's with the new form pf.Poisson() and working.

I don't know with the family definition has changed, but other references to GAS models follow the not working form, like the table below.

PyFlux Class
Poisson GAS GASPoisson()
t GAS GASt()
Skew t GAS GASSkewt()
Normal GAS GASNormal()
Laplace GAS GASLaplace()
Exponential GAS GASExponential()

lgmoneda avatar Feb 06 '17 15:02 lgmoneda

Hi there - yes, the website needs to be updated with the new documentation. The API is now unified, like you mention, so pf.Poisson() is the right syntax.

RJT1990 avatar Feb 06 '17 21:02 RJT1990