26
26
ForecastSchemaYamlError ,
27
27
ForecastInputDataError ,
28
28
)
29
+ from ads .opctl .operator .lowcode .forecast .operator_config import ForecastOperatorConfig
29
30
30
31
from ads .opctl .operator .lowcode .forecast .utils import smape
31
32
from ads .opctl .operator .cmd import run
@@ -731,12 +732,6 @@ def test_smape_error():
731
732
@pytest .mark .parametrize ("model" , ["prophet" ])
732
733
def test_pandas_historical_input (operator_setup , model ):
733
734
from ads .opctl .operator .lowcode .forecast .__main__ import operate
734
- from ads .opctl .operator .lowcode .forecast .model .forecast_datasets import (
735
- ForecastDatasets ,
736
- )
737
- from ads .opctl .operator .lowcode .forecast .operator_config import (
738
- ForecastOperatorConfig ,
739
- )
740
735
741
736
historical_data_path , additional_data_path , _ = setup_artificial_data (
742
737
operator_setup
@@ -746,7 +741,7 @@ def test_pandas_historical_input(operator_setup, model):
746
741
historical_data_path = historical_data_path ,
747
742
additional_data_path = additional_data_path ,
748
743
)
749
- yaml_i ["spec" ]["horizon" ] = 10
744
+ yaml_i ["spec" ]["horizon" ] = HORIZON
750
745
yaml_i ["spec" ]["model" ] = model
751
746
df = pd .read_csv (historical_data_path )
752
747
yaml_i ["spec" ]["historical_data" ].pop ("url" )
@@ -763,12 +758,6 @@ def test_pandas_historical_input(operator_setup, model):
763
758
@pytest .mark .parametrize ("model" , ["prophet" ])
764
759
def test_pandas_additional_input (operator_setup , model ):
765
760
from ads .opctl .operator .lowcode .forecast .__main__ import operate
766
- from ads .opctl .operator .lowcode .forecast .model .forecast_datasets import (
767
- ForecastDatasets ,
768
- )
769
- from ads .opctl .operator .lowcode .forecast .operator_config import (
770
- ForecastOperatorConfig ,
771
- )
772
761
773
762
tmpdirname = operator_setup
774
763
historical_data_path , additional_data_path = setup_small_rossman ()
@@ -898,9 +887,6 @@ def test_auto_select(operator_setup):
898
887
@pytest .mark .parametrize ("model" , ["prophet" ])
899
888
def test_prophet_floor_cap (operator_setup , model ):
900
889
from ads .opctl .operator .lowcode .forecast .__main__ import operate
901
- from ads .opctl .operator .lowcode .forecast .operator_config import (
902
- ForecastOperatorConfig ,
903
- )
904
890
905
891
yaml_i = TEMPLATE_YAML .copy ()
906
892
yaml_i ["spec" ]["horizon" ] = 10
0 commit comments