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 40f9063 commit 1490e83Copy full SHA for 1490e83
ads/opctl/operator/lowcode/anomaly/model/autots.py
@@ -45,9 +45,7 @@ def _build_model(self) -> AnomalyOutput:
45
"contamination"] = self.spec.contamination if self.spec.contamination else 0.01
46
else:
47
if self.spec.contamination:
48
- logger.warn(
49
- f"The contamination parameter is not supported for the selected model \"{method}\" and will "
50
- f"be ignored.")
+ raise ValueError(f"The contamination parameter is not supported for the selected model \"{method}\"")
51
logger.info(f"model params: {model_params}")
52
53
model = AnomalyDetector(**model_params)
0 commit comments