Skip to content

Commit

Permalink
Fixed mistake when calculating outlier threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Rodríguez Flores committed Jan 9, 2024
1 parent f98b25e commit 7c57547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/src/ai/outliers.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def compute_json(self, metric, raw_json):
(Json): Json with the anomalies and predictions for the data with RedBorder
prediction Json format.
"""
threshold = self.std_loss+5*self.std_loss
threshold = self.avg_loss+5*self.std_loss
data, timestamps = self.input_json(raw_json)
predicted, loss = self.calculate_predictions(data)
predicted = pd.DataFrame(predicted, columns=self.columns)
Expand Down

0 comments on commit 7c57547

Please sign in to comment.