Skip to content

Commit c7220f7

Browse files
authored
[FIX] ADD forecasting init design to pip data files (#459)
* add forecasting_init.json to data files under setup * avoid undefined reference in scale_value
1 parent 0e574af commit c7220f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

autoPyTorch/pipeline/components/setup/network/forecasting_architecture.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ def scale_value(self,
368368
outputs = raw_value - loc.to(device)
369369
else:
370370
outputs = (raw_value - loc.to(device)) / scale.to(device)
371-
return outputs
371+
return outputs
372+
else:
373+
return raw_value
372374

373375
@abstractmethod
374376
def forward(self,

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
},
8484
test_suite="pytest",
8585
data_files=[('configs', ['autoPyTorch/configs/default_pipeline_options.json']),
86-
('portfolio', ['autoPyTorch/configs/greedy_portfolio.json'])],
86+
('portfolio', ['autoPyTorch/configs/greedy_portfolio.json']),
87+
('forecasting_init', ['autoPyTorch/configs/forecasting_init_cfgs.json'])],
8788
dependency_links=['https://github.com/automl/automl_common.git/tarball/autoPyTorch#egg=package-0.0.1']
8889
)

0 commit comments

Comments
 (0)