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:
Abdul Fatir 2024-06-16 17:28:47 +02:00 committed by GitHub
parent 2f92a126d3
commit d2e0c9d6d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()