Skip to content

Commit 5caf552

Browse files
committed
bug fix
1 parent 73ebf11 commit 5caf552

File tree

1 file changed

+2
-2
lines changed
  • ads/opctl/operator/lowcode/anomaly/model

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def _build_model(self) -> pd.DataFrame:
4242
anomaly = pd.DataFrame({
4343
date_column: df[date_column],
4444
OutputColumns.ANOMALY_COL: y_pred
45-
})
45+
}).reset_index(drop=True)
4646
score = pd.DataFrame({
4747
date_column: df[date_column],
4848
OutputColumns.SCORE_COL: [item[1] for item in scores]
49-
})
49+
}).reset_index(drop=True)
5050
anomaly_output.add_output(target, anomaly, score)
5151

5252
return anomaly_output

0 commit comments

Comments
 (0)