Skip to content

Commit c284f0f

Browse files
committed
tests enable
1 parent fdaa337 commit c284f0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ads/opctl/operator/lowcode/anomaly/model/anomaly_merlion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
MERLIONAD_MODEL_MAP,
1919
OutputColumns,
2020
)
21-
from tests.integration import other
2221

2322
from .anomaly_dataset import AnomalyOutput
2423
from .base_model import AnomalyOperatorBaseModel
@@ -100,6 +99,8 @@ def _build_model(self) -> AnomalyOutput:
10099
data = TimeSeries.from_pd(data)
101100
for model_name, (model_config, model) in model_config_map.items():
102101
model_config = model_config(**self.spec.model_kwargs)
102+
if hasattr(model_config, "target_seq_index"):
103+
model_config.target_seq_index = df.columns.get_loc(self.spec.target_column)
103104
model = model(model_config)
104105

105106

0 commit comments

Comments
 (0)