你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 20:46:52 +08:00
Added some print statements with information on optimisation results to complement the plots.
这个提交包含在:
@@ -5,7 +5,7 @@
|
||||
#
|
||||
# Please use the attribution at http://dx.doi.org/10.1190/1.3548506
|
||||
|
||||
import argparse, pickle
|
||||
import argparse, os, pickle
|
||||
|
||||
from gprMax.optimisation_taguchi import plot_optimisation_history
|
||||
|
||||
@@ -20,6 +20,14 @@ f = open(args.picklefile, 'rb')
|
||||
optparamshist = pickle.load(f)
|
||||
fitnessvalueshist = pickle.load(f)
|
||||
optparamsinit = pickle.load(f)
|
||||
|
||||
print('Optimisations summary for: {}'.format(os.path.split(args.picklefile)[1]))
|
||||
print('Number of iterations: {:g}'.format(len(fitnessvalueshist)))
|
||||
print('History of fitness values: {}'.format(fitnessvalueshist))
|
||||
print('History of parameter values:')
|
||||
for key, value in optparamshist.items():
|
||||
print(key, value)
|
||||
|
||||
|
||||
# Plot the history of fitness values and each optimised parameter values for the optimisation
|
||||
plot_optimisation_history(fitnessvalueshist, optparamshist, optparamsinit)
|
在新工单中引用
屏蔽一个用户