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

TypeError: ts_train_test_split() got an unexpected keyword argument 'shuffle' #2

Open
brunopinos31 opened this issue Jan 11, 2023 · 0 comments

Comments

@brunopinos31
Copy link

Hi,

I have an error when I try to fit main.AnomalyDetection()

TypeError: ts_train_test_split() got an unexpected keyword argument 'shuffle'

Problem is here:
def ts_train_test_split(df, len_seq,
points_ahead=1, gap=0, shag=1, intersection=True,
test_size=None,train_size=None, random_state=None, what_to_shuffle='train')

X_train, X_test, y_train, y_test = src.ts_train_test_split(df=new_df,
len_seq=len_seq,
points_ahead=points_ahead,
gap=gap,
shag=shag,
intersection=intersection,
test_size=test_size,
train_size=train_size,
random_state=random_state,
shuffle=False,
stratify=stratify)

shuffle and stratify argument don't exist for the function 'ts_train_test_split'

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