How do I use validation_method=custom where validation_indexes is most recent datetime in dataframe #116
Unanswered
shashikiran-maf
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Possibly two problems here @shashikiran-maf. One is the min allowed train percent arg, the second is that validation indexes is expecting a date range, not a single date. AutoTS(
# other args here
min_allowed_train_percent=0,
).fit(
# other args here
validation_indexes=[
pd.date_range("2022-03-01", "2022-03-31"),
],
) |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm unable to use custom as validation_method. It errs out saying the training period should be greater than forecast_length.
My dataframe is has date range - 01-12-2021 to 31-03-2022 (four months data)
now with custom validation_method, I want to utilize the last month i.e., March 2022 as validation_set (validation_indexes).
I'm passing validation_indexes=[[pd.to_datetime('28-02-2022')]] at predict function, and my num_validation is set to 1.
This setup errs out with "training dataset should be greater than forecast_length, try altering min_allowed_train_percent"
Beta Was this translation helpful? Give feedback.
All reactions