mirror of
https://github.com/amazon-science/chronos-forecasting
synced 2026-05-24 10:08:33 +00:00
Set drop_prob = 0 for causal models (#125)
*Description of changes:* This PR sets `drop_prob = 0` when training causal models. Missing values are problematic for causal model training. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
This commit is contained in:
parent
2f92a126d3
commit
d2e0c9d6d5
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ class ChronosDataset(IterableDataset, ShuffleMixin):
|
|||
self.tokenizer = tokenizer
|
||||
self.context_length = context_length
|
||||
self.prediction_length = prediction_length
|
||||
self.drop_prob = drop_prob
|
||||
self.drop_prob = drop_prob if model_type == "seq2seq" else 0.0
|
||||
self.min_past = min_past or prediction_length
|
||||
self.model_type = model_type
|
||||
self.imputation_method = imputation_method or LeavesMissingValues()
|
||||
|
|
|
|||
Loading…
Reference in a new issue