File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,6 @@ def __init__(
163
163
else :
164
164
self .continuous_indices .append (idx )
165
165
166
- # overwrite __init__ params for upwards compatibility with AS PRs
167
- # todo: should we avoid this and ensure classes are dataclass-like?
168
- self .min_prediction_length = self ._min_prediction_length
169
- self .min_encoder_length = self ._min_encoder_length
170
- self .categorical_encoders = self ._categorical_encoders
171
- self .scalers = self ._scalers
172
- self .target_normalizer = self ._target_normalizer
173
-
174
166
def _prepare_metadata (self ):
175
167
"""Prepare metadata for model initialisation.
176
168
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ def test_init(sample_timeseries_data):
86
86
87
87
assert dm .max_encoder_length == 24
88
88
assert dm .max_prediction_length == 12
89
- assert dm .min_encoder_length == 24
90
- assert dm .min_prediction_length == 12
89
+ assert dm ._min_encoder_length == 24
90
+ assert dm ._min_prediction_length == 12
91
91
assert dm .batch_size == 8
92
92
assert dm .train_val_test_split == (0.7 , 0.15 , 0.15 )
93
93
You can’t perform that action at this time.
0 commit comments