debug average vs max
This commit is contained in:
@@ -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') # 返回高值以惩罚该个体
|
||||
|
||||
Reference in New Issue
Block a user