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

MFLES clip number of arguments #882

Closed
atsangarides opened this issue Aug 5, 2024 · 2 comments
Closed

MFLES clip number of arguments #882

atsangarides opened this issue Aug 5, 2024 · 2 comments
Labels

Comments

@atsangarides
Copy link

atsangarides commented Aug 5, 2024

What happened + What you expected to happen

Trying to fit an AutoMFLES/FLES model and I get a

TypeError: clip() takes at most 4 arguments (5 given)

when cap_outliers method is called in fit()

Versions / Dependencies

statsforecast==1.7.6
pandas==2.2.2

Reproduction script

from statsforecast.models import MFLES

y = pd.Series(range(0, 12*7))
m = MFLES(
      season_length = [48],
)
m.fit(y=y)

Issue Severity

Medium: It is a significant difficulty but I can work around it.

@jmoralez
Copy link
Member

jmoralez commented Aug 5, 2024

Hey. If you use the model isolated like that you have to provide a numpy array, not a pandas series.

@atsangarides
Copy link
Author

OMG, the type hinting is so clear...

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

No branches or pull requests

2 participants