コード例 #1
0
            print "ECDFs of run lengths figures done."

        if isTab:
            prepend_to_file(os.path.join(
                outputdir, 'bbob_pproc_commands.tex'), [
                    '\providecommand{\\bbobpptablesmanylegend}[1]{' +
                    pptables.tables_many_legend + '}'
                ])
            dictNoi = pproc.dictAlgByNoi(dictAlg)
            for ng, tmpdictng in dictNoi.iteritems():
                dictDim = pproc.dictAlgByDim(tmpdictng)
                for d, tmpdictdim in dictDim.iteritems():
                    pptables.main(
                        tmpdictdim,
                        sortedAlgs,
                        inset.
                        tableconstant_target_function_values,  # TODO: here use non-constant values?
                        outputdir,
                        verbose)
            print "Comparison tables done."

        if isFig:
            plt.rc("axes", labelsize=20, titlesize=24)
            plt.rc("xtick", labelsize=20)
            plt.rc("ytick", labelsize=20)
            plt.rc("font", size=20)
            plt.rc("legend", fontsize=20)
            ppfigs.main(dictAlg, sortedAlgs, ftarget, outputdir, verbose)
            plt.rcdefaults()
            print "Scaling figures done."
コード例 #2
0
            print "ECDFs of run lengths figures done."

        if isTab:
            if isExpensive:
                prepend_to_file(os.path.join(outputdir, 'bbob_pproc_commands.tex'), 
                            ['\providecommand{\\bbobpptablesmanylegend}[1]{' + 
                             pptables.tables_many_expensive_legend + '}'])
            else:
                prepend_to_file(os.path.join(outputdir, 'bbob_pproc_commands.tex'), 
                            ['\providecommand{\\bbobpptablesmanylegend}[1]{' + 
                             pptables.tables_many_legend + '}'])
            dictNoi = pproc.dictAlgByNoi(dictAlg)
            for ng, tmpdictng in dictNoi.iteritems():
                dictDim = pproc.dictAlgByDim(tmpdictng)
                for d, tmpdictdim in dictDim.iteritems():
                    pptables.main(tmpdictdim, sortedAlgs, outputdir, verbose)
            print "Comparison tables done."

        global ftarget  # not nice
        if isFig:
            plt.rc("axes", labelsize=20, titlesize=24)
            plt.rc("xtick", labelsize=20)
            plt.rc("ytick", labelsize=20)
            plt.rc("font", size=20)
            plt.rc("legend", fontsize=20)
            if genericsettings.runlength_based_targets:
                ftarget = pproc.RunlengthBasedTargetValues([target_runlength])  # TODO: make this more variable but also consistent
            ppfigs.main(dictAlg, sortedAlgs, ftarget, outputdir, verbose)
            plt.rcdefaults()
            print "Scaling figures done."
コード例 #3
0
            print "ECDFs of run lengths figures done."

        if isTab:
            if isExpensive:
                prepend_to_file(os.path.join(outputdir, 'bbob_pproc_commands.tex'), 
                            ['\providecommand{\\bbobpptablesmanylegend}[1]{' + 
                             pptables.tables_many_expensive_legend + '}'])
            else:
                prepend_to_file(os.path.join(outputdir, 'bbob_pproc_commands.tex'), 
                            ['\providecommand{\\bbobpptablesmanylegend}[1]{' + 
                             pptables.tables_many_legend + '}'])
            dictNoi = pproc.dictAlgByNoi(dictAlg)
            for ng, tmpdictng in dictNoi.iteritems():
                dictDim = pproc.dictAlgByDim(tmpdictng)
                for d, tmpdictdim in dictDim.iteritems():
                    pptables.main(tmpdictdim, sortedAlgs, outputdir, verbose)
            print "Comparison tables done."

        global ftarget  # not nice
        if isFig:
            plt.rc("axes", labelsize=20, titlesize=24)
            plt.rc("xtick", labelsize=20)
            plt.rc("ytick", labelsize=20)
            plt.rc("font", size=20)
            plt.rc("legend", fontsize=20)
            if genericsettings.runlength_based_targets:
                ftarget = pproc.RunlengthBasedTargetValues([target_runlength])  # TODO: make this more variable but also consistent
            ppfigs.main(dictAlg, sortedAlgs, ftarget, outputdir, verbose)
            plt.rcdefaults()
            print "Scaling figures done."
コード例 #4
0
                prepend_to_file(
                    os.path.join(outputdir, 'bbob_pproc_commands.tex'), [
                        '\providecommand{\\bbobpptablesmanylegend}[1]{' +
                        pptables.tables_many_expensive_legend + '}'
                    ])
            else:
                prepend_to_file(
                    os.path.join(outputdir, 'bbob_pproc_commands.tex'), [
                        '\providecommand{\\bbobpptablesmanylegend}[1]{' +
                        pptables.tables_many_legend + '}'
                    ])
            dictNoi = pproc.dictAlgByNoi(dictAlg)
            for ng, tmpdictng in dictNoi.iteritems():
                dictDim = pproc.dictAlgByDim(tmpdictng)
                for d, tmpdictdim in dictDim.iteritems():
                    pptables.main(tmpdictdim, sortedAlgs, outputdir,
                                  genericsettings.verbose)
            print "Comparison tables done."

        global ftarget  # not nice
        if genericsettings.isFig:
            plt.rc("axes", labelsize=20, titlesize=24)
            plt.rc("xtick", labelsize=20)
            plt.rc("ytick", labelsize=20)
            plt.rc("font", size=20)
            plt.rc("legend", fontsize=20)
            plt.rc('pdf', fonttype=42)
            if genericsettings.runlength_based_targets:
                ftarget = pproc.RunlengthBasedTargetValues([
                    target_runlength
                ])  # TODO: make this more variable but also consistent
            ppfigs.main(dictAlg, genericsettings.many_algorithm_file_name,
コード例 #5
0
        if genericsettings.isTab:
            if genericsettings.isExpensive:
                prepend_to_file(
                    os.path.join(outputdir, "bbob_pproc_commands.tex"),
                    ["\providecommand{\\bbobpptablesmanylegend}[1]{" + pptables.tables_many_expensive_legend + "}"],
                )
            else:
                prepend_to_file(
                    os.path.join(outputdir, "bbob_pproc_commands.tex"),
                    ["\providecommand{\\bbobpptablesmanylegend}[1]{" + pptables.tables_many_legend + "}"],
                )
            dictNoi = pproc.dictAlgByNoi(dictAlg)
            for ng, tmpdictng in dictNoi.iteritems():
                dictDim = pproc.dictAlgByDim(tmpdictng)
                for d, tmpdictdim in dictDim.iteritems():
                    pptables.main(tmpdictdim, sortedAlgs, outputdir, genericsettings.verbose)
            print "Comparison tables done."

        global ftarget  # not nice
        if genericsettings.isFig:
            plt.rc("axes", labelsize=20, titlesize=24)
            plt.rc("xtick", labelsize=20)
            plt.rc("ytick", labelsize=20)
            plt.rc("font", size=20)
            plt.rc("legend", fontsize=20)
            plt.rc("pdf", fonttype=42)
            if genericsettings.runlength_based_targets:
                ftarget = pproc.RunlengthBasedTargetValues(
                    [target_runlength]
                )  # TODO: make this more variable but also consistent
            ppfigs.main(
コード例 #6
0
ファイル: rungenericmany.py プロジェクト: Oueee/SOS
                                   order=sortedAlgs,
                                   outputdir=outputdir,
                                   info=('%02dD_%s' % (d, fg)),
                                   verbose=verbose)
            print "ECDFs of run lengths figures done."

        if isTab:
            prepend_to_file(os.path.join(outputdir, 'bbob_pproc_commands.tex'), 
                            ['\providecommand{\\bbobpptablesmanylegend}[1]{' + 
                             pptables.tables_many_legend + '}'])
            dictNoi = pproc.dictAlgByNoi(dictAlg)
            for ng, tmpdictng in dictNoi.iteritems():
                dictDim = pproc.dictAlgByDim(tmpdictng)
                for d, tmpdictdim in dictDim.iteritems():
                    pptables.main(tmpdictdim, sortedAlgs,
                                  inset.tableconstant_target_function_values,  # TODO: here use non-constant values?
                                  outputdir, verbose)
            print "Comparison tables done."

        if isFig:
            plt.rc("axes", labelsize=20, titlesize=24)
            plt.rc("xtick", labelsize=20)
            plt.rc("ytick", labelsize=20)
            plt.rc("font", size=20)
            plt.rc("legend", fontsize=20)
            ppfigs.main(dictAlg, sortedAlgs, ftarget, outputdir, verbose)
            plt.rcdefaults()
            print "Scaling figures done."

        plt.rcdefaults()
コード例 #7
0
ファイル: rungenericmany.py プロジェクト: anneauger/coco
                prepend_to_file(os.path.join(outputdir,
                            'bbob_pproc_commands.tex'), 
                            ['\providecommand{\\bbobpptablesmanylegend}[1]{' + 
                             pptables.tables_many_expensive_legend + '}'])
            else:
                prepend_to_file(os.path.join(outputdir,
                            'bbob_pproc_commands.tex'), 
                            ['\providecommand{\\bbobpptablesmanylegend}[1]{' + 
                             pptables.tables_many_legend + '}'])
            dictNoi = pproc.dictAlgByNoi(dictAlg)
            for ng, tmpdictng in dictNoi.iteritems():
                dictDim = pproc.dictAlgByDim(tmpdictng)
                for d, tmpdictdim in dictDim.iteritems():
                    pptables.main(
                        tmpdictdim, 
                        sortedAlgs,
                        dsList[0].isBiobjective(),
                        outputdir, 
                        genericsettings.verbose)
                        
            print "Comparison tables done."

        global ftarget  # not nice
        if genericsettings.isFig:
            plt.rc("axes", labelsize=20, titlesize=24)
            plt.rc("xtick", labelsize=20)
            plt.rc("ytick", labelsize=20)
            plt.rc("font", size=20)
            plt.rc("legend", fontsize=20)
            plt.rc('pdf', fonttype = 42)
            if genericsettings.runlength_based_targets:
                reference_data = 'bestBiobj2016' if dsList[0].isBiobjective() else 'bestGECCO2009'