你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Corrected check for 2 experiments that produce the same fitness value.
这个提交包含在:
@@ -391,8 +391,8 @@ def calculate_optimal_levels(optparams, levels, levelsopt, fitnessvalues, OA, N,
|
|||||||
# Calculate optimal level from table of responses
|
# Calculate optimal level from table of responses
|
||||||
optlevel = np.where(responses == np.amax(responses))[0]
|
optlevel = np.where(responses == np.amax(responses))[0]
|
||||||
|
|
||||||
# If 2 experiments produce the same fitness value (this shouldn't happen if the fitness function is designed correctly)
|
# If 2 experiments produce the same fitness value (this shouldn't happen if the fitness function is designed correctly) pick first level
|
||||||
if len(optlevel):
|
if len(optlevel) > 1:
|
||||||
optlevel = optlevel[0]
|
optlevel = optlevel[0]
|
||||||
|
|
||||||
levelsopt[p] = optlevel
|
levelsopt[p] = optlevel
|
||||||
|
在新工单中引用
屏蔽一个用户