表述修改
This commit is contained in:
parent
532d8d8522
commit
de836e77cf
2
main.py
2
main.py
|
|
@ -94,7 +94,7 @@ def main():
|
||||||
# 早停检查(连续多代无改进则停止)
|
# 早停检查(连续多代无改进则停止)
|
||||||
if no_improve_count >= config.early_stop_patience:
|
if no_improve_count >= config.early_stop_patience:
|
||||||
print(
|
print(
|
||||||
f"早停触发:连续{no_improve_count}代两个目标值变化均小于{config.early_stop_threshold},终止于第{generation}代")
|
f"早停触发:连续{no_improve_count}代两个目标值变化率均小于{config.early_stop_threshold},终止于第{generation}代")
|
||||||
break
|
break
|
||||||
# 选择操作(锦标赛选择)
|
# 选择操作(锦标赛选择)
|
||||||
selected = nsga2.selection(population, objectives)
|
selected = nsga2.selection(population, objectives)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue