Update agents/ensemble_weights.py
Browse files132 unmodified lines133134135136136137138139132 unmodified lines """Check if models have conflicting predictions""" agent_logger.log("weight_optimization", "info", "Checking for conflicts among model predictions.") 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"] agent_logger.debug("weight_optimization", "info", f"Non-none predictions for conflict check: {non_none_predictions}") agent_logger.log("weight_optimization", "info", f"Non-none predictions for conflict check: {non_none_predictions}") result = len(non_none_predictions) > 1 and len(set(non_none_predictions)) > 1 agent_logger.log("weight_optimization", "info", f"Conflicts detected: {result}") return resultagents/ensemble_weights.py+1-1