feat: Update baseline calculations and LLM prompts
- Change baseline calculations to use integers instead of floats to simplify data. - Update LLM constraints and prompt for more accurate anomaly detection. - Refine known_issues to reduce false positives. - Update PROGRESS.md with new TODO items.
This commit is contained in:
@@ -19,7 +19,7 @@ def store_data(new_data):
|
||||
def _calculate_average(data, key1, key2):
|
||||
"""Helper function to calculate the average of a nested key in a list of dicts."""
|
||||
values = [d[key1][key2] for d in data if key1 in d and key2 in d[key1] and d[key1][key2] != "N/A"]
|
||||
return sum(values) / len(values) if values else 0
|
||||
return int(sum(values) / len(values)) if values else 0
|
||||
|
||||
def calculate_baselines():
|
||||
data = load_data()
|
||||
|
||||
Reference in New Issue
Block a user