Ejemplo n.º 1
0
 def start(self):
     # get the asked plugin list
     askedPlugins = []
     for p in self.checkPlugins:
             if self.checkPlugins[p].get() == 1:
                 askedPlugins += [p]
                 
     # get the asked path list
     askedPaths = []
     for p in self.testsList.get(0,END):
         askedPaths += [p]
         
     # launch it
     ometahstats.process(askedPaths,askedPlugins,self.varFileType.get())
     
     self.labelState.configure(text= "Processed %i path, produced %i files" % ( len(self.testsList.get(0,END)), len(askedPlugins) ) )
w = ometahtest.Test()
w.setArgs('-s 10 -i 100 -p Ackley -d 2 -m SGEN')
w.setNbRuns(runs)
w.setOmetahPath('../../ometah/ometah')
w.start()


print '\nLaunching data process:'
paths = [ u.getPath(), v.getPath() , w.getPath()
          ]

print '  Using ',paths

ometahstats.process(paths,
   [
'end_optimum_bestworst',
'end_optimum_solution_distribution_2D_kernelestimation',
'end_optimum_solution_histogram2D',
'end_optimum_solution_points',
'end_optimum_value_bestworst',
'end_optimum_value_histogram',
##'end_optimum_value_kruskal',
'end_optimum_value_quantilebox',
'end_optimum_value_successrate',
'iteration_all_value_median_logarithmic',
'iteration_all_value_quantilebox',
'iteration_optimum_value_quantilebox',
'end_optimum_value_histogram_multi'
    ],
    'html') # output type
Ejemplo n.º 3
0
import ometahtest
import ometahstats

# Change this if you have put the ometah binary somewhere else
# or simply change it to 'ometah' if it is installed on your system
path_to_ometah_binary = '../../ometah/ometah'

# Number of run to calculate
# the higher is this number, the longer it takes to process,
# but the better are your results
runs = 10

print 'Launching test runs:'
print '  First test:'
u = ometahtest.Test(path_to_ometah_binary,'-s 10 -i 10 -e 100 -p Rosenbrock -d 2 -m CEDA',runs)
u.start()

print '  Second test:'
v = ometahtest.Test(path_to_ometah_binary,'-s 10 -i 10 -e 100 -p Rosenbrock -d 2 -m RA',runs)
v.start()

print '\nLaunching data process:'
paths = [ u.getPath(), v.getPath() ]
# or with true paths, for example : 
# paths = ['results/Rosenbrock_CEDA_d2_e100_r27461_1', 'results/Rosenbrock_RA_d2_e100_r1433_1']
print '  Using ',paths

# calculate all graphics and generate an html report
ometahstats.process(paths, 'all','html')