debug average vs max

This commit is contained in:
AgentLabCn
2025-12-01 20:05:31 +08:00
parent d86e16e3a3
commit 135b762a29
7 changed files with 212 additions and 227 deletions

View File

@@ -45,7 +45,7 @@ def evaluate(genes: List[float]) -> float:
)
while model.running:
model.step()
return model.mean_abs_error
return model.error
except PermissionError as e:
print(f"文件访问冲突: {e}. 正在重试...")
return float('inf') # 返回高值以惩罚该个体