Skip to content

Commit c0d0565

Browse files
committed
fix typo
1 parent 8f4f362 commit c0d0565

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _build_model(self) -> AnomalyOutput:
3636
# Set tree parameters
3737
num_trees = model_kwargs.get("num_trees", 200)
3838
shingle_size = model_kwargs.get("shingle_size", None)
39-
anamoly_threshold = model_kwargs.get("anamoly_threshold", 95)
39+
anomaly_threshold = model_kwargs.get("anamoly_threshold", 95)
4040

4141
for target, df in self.datasets.full_data_dict.items():
4242
try:
@@ -76,7 +76,7 @@ def _build_model(self) -> AnomalyOutput:
7676
)
7777

7878
y_pred = (
79-
avg_codisp > np.percentile(avg_codisp, anamoly_threshold)
79+
avg_codisp > np.percentile(avg_codisp, anomaly_threshold)
8080
).astype(int)
8181

8282
index_col = df.columns[0]

0 commit comments

Comments
 (0)