Update agents/ensemble_weights.py
Browse files
agents/ensemble_weights.py
CHANGED
@@ -133,7 +133,7 @@ class ModelWeightManager:
|
|
133 |
"""Check if models have conflicting predictions"""
|
134 |
agent_logger.log("weight_optimization", "info", "Checking for conflicts among model predictions.")
|
135 |
non_none_predictions = [p.get("Label") for p in predictions.values() if p is not None and isinstance(p, dict) and p.get("Label") is not None and p.get("Label") != "Error"]
|
136 |
-
agent_logger.
|
137 |
result = len(non_none_predictions) > 1 and len(set(non_none_predictions)) > 1
|
138 |
agent_logger.log("weight_optimization", "info", f"Conflicts detected: {result}")
|
139 |
return result
|
|
|
133 |
"""Check if models have conflicting predictions"""
|
134 |
agent_logger.log("weight_optimization", "info", "Checking for conflicts among model predictions.")
|
135 |
non_none_predictions = [p.get("Label") for p in predictions.values() if p is not None and isinstance(p, dict) and p.get("Label") is not None and p.get("Label") != "Error"]
|
136 |
+
agent_logger.log("weight_optimization", "info", f"Non-none predictions for conflict check: {non_none_predictions}")
|
137 |
result = len(non_none_predictions) > 1 and len(set(non_none_predictions)) > 1
|
138 |
agent_logger.log("weight_optimization", "info", f"Conflicts detected: {result}")
|
139 |
return result
|