Describe the bug
我在给出的多目标demo中加入了:
if myAlgorithm.log is not None and NDSet.sizes != 0:
print('GD', myAlgorithm.log['gd'][-1])
语句,然后报错:Traceback (most recent call last):
File "D:/Downloads/geatpy-master/geatpy-master/geatpy/demo/moea_demo/moea_demo2/main.py", line 30, in
print('GD', myAlgorithm.log['gd'][-1])
KeyError: 'gd'
因为原demo只能看帕累托解的个数,而我想看看其他指标如IGD,HV等等,就照着文档里的demo加了上述语句,结果报了错,请问这是为什么?
Describe the bug 我在给出的多目标demo中加入了:
print('GD', myAlgorithm.log['gd'][-1])
KeyError: 'gd'
因为原demo只能看帕累托解的个数,而我想看看其他指标如IGD,HV等等,就照着文档里的demo加了上述语句,结果报了错,请问这是为什么?
if myAlgorithm.log is not None and NDSet.sizes != 0: print('GD', myAlgorithm.log['gd'][-1]) 语句,然后报错:Traceback (most recent call last): File "D:/Downloads/geatpy-master/geatpy-master/geatpy/demo/moea_demo/moea_demo2/main.py", line 30, in