We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdaa337 commit c284f0fCopy full SHA for c284f0f
ads/opctl/operator/lowcode/anomaly/model/anomaly_merlion.py
@@ -18,7 +18,6 @@
18
MERLIONAD_MODEL_MAP,
19
OutputColumns,
20
)
21
-from tests.integration import other
22
23
from .anomaly_dataset import AnomalyOutput
24
from .base_model import AnomalyOperatorBaseModel
@@ -100,6 +99,8 @@ def _build_model(self) -> AnomalyOutput:
100
99
data = TimeSeries.from_pd(data)
101
for model_name, (model_config, model) in model_config_map.items():
102
model_config = model_config(**self.spec.model_kwargs)
+ if hasattr(model_config, "target_seq_index"):
103
+ model_config.target_seq_index = df.columns.get_loc(self.spec.target_column)
104
model = model(model_config)
105
106
0 commit comments