Ejemplo n.º 1
0
def plotDerivedGains( runs, gainIds, costIncrement ):
    sessid = str(runs[0].get_session_id())
    for gainId in gainIds:

        yValueLists = [
            (FiguresConfig.avgPlotName, stats.get_average_derived_gains_at_total_rank_range( gainId, runs ) ),
            ('top50%', stats.get_average_top_derived_gains_at_total_rank_range( runs, gainId, proportion = 50 ) ),
            ('bottom50%', stats.get_average_top_derived_gains_at_total_rank_range( runs, gainId, proportion = 50, bottom= True ) ),
            ('avg +1SD', stats.get_avg_derived_gain_plusSD_at_total_rank_range( gainId, runs ) ),
            ('avg -1SD', stats.get_avg_derived_gain_plusSD_at_total_rank_range( gainId, runs, -1 ) )
            ]

        defaultPlot( 'rank', gainId, stats.get_max_rank_range( runs ), yValueLists,
                 stats.get_amount_of_runs_at_total_rank_range(runs), get_filename(gainId + 'AtRank', runs))

        yValueLists = [
            (FiguresConfig.avgPlotName, stats.get_average_derived_gains_at_cost_range( gainId, runs, costIncrement ) ),
            ('top50%', stats.get_average_top_derived_gains_at_cost_range( runs, gainId, costIncrement, proportion = 50 ) ),
            ('bottom50%', stats.get_average_top_derived_gains_at_cost_range( runs, gainId, costIncrement, proportion = 50, bottom = True ) ),
            ('avg +1SD', stats.get_avg_derived_gain_plusSD_at_cost_range( gainId, runs, costIncrement ) ),
            ('avg -1SD', stats.get_avg_derived_gain_plusSD_at_cost_range( gainId, runs, costIncrement, -1 ) )
            ]

        defaultPlot( 'cost', gainId, stats.get_max_cost_range( runs, costIncrement ), yValueLists,
                 stats.get_amount_of_runs_at_cost_range(runs, costIncrement),
                 get_filename( gainId + 'AtCost', runs ) )
Ejemplo n.º 2
0
def plotGainsAtCost(runs, costIncrement):
    sessid = str(runs[0].get_session_id())
    yValueLists = [
        (FiguresConfig.avgPlotName,
         stats.get_average_cumulated_gains_at_cost_range(runs, costIncrement)),
        ('top50%',
         stats.get_average_top_cumulated_gains_at_cost_range(runs,
                                                             costIncrement,
                                                             proportion=50)),
        ('bottom50%',
         stats.get_average_top_cumulated_gains_at_cost_range(runs,
                                                             costIncrement,
                                                             proportion=50,
                                                             bottom=True)),
        ('avg +1SD',
         stats.get_avg_cumulated_gain_plusSD_at_cost_range(
             runs, costIncrement)),
        ('avg -1SD',
         stats.get_avg_cumulated_gain_plusSD_at_cost_range(
             runs, costIncrement, -1))
    ]
    defaultPlot('cost', 'cg', stats.get_max_cost_range(runs, costIncrement),
                yValueLists,
                stats.get_amount_of_runs_at_cost_range(runs, costIncrement),
                get_filename('gainAtCost', runs))
Ejemplo n.º 3
0
def plotDerivedGains(runs, gainIds, costIncrement):
    sessid = str(runs[0].get_session_id())
    for gainId in gainIds:

        yValueLists = [
            (FiguresConfig.avgPlotName,
             stats.get_average_derived_gains_at_total_rank_range(gainId,
                                                                 runs)),
            ('top50%',
             stats.get_average_top_derived_gains_at_total_rank_range(
                 runs, gainId, proportion=50)),
            ('bottom50%',
             stats.get_average_top_derived_gains_at_total_rank_range(
                 runs, gainId, proportion=50, bottom=True)),
            ('avg +1SD',
             stats.get_avg_derived_gain_plusSD_at_total_rank_range(
                 gainId, runs)),
            ('avg -1SD',
             stats.get_avg_derived_gain_plusSD_at_total_rank_range(
                 gainId, runs, -1))
        ]

        defaultPlot('rank', gainId, stats.get_max_rank_range(runs),
                    yValueLists,
                    stats.get_amount_of_runs_at_total_rank_range(runs),
                    get_filename(gainId + 'AtRank', runs))

        yValueLists = [
            (FiguresConfig.avgPlotName,
             stats.get_average_derived_gains_at_cost_range(
                 gainId, runs, costIncrement)),
            ('top50%',
             stats.get_average_top_derived_gains_at_cost_range(runs,
                                                               gainId,
                                                               costIncrement,
                                                               proportion=50)),
            ('bottom50%',
             stats.get_average_top_derived_gains_at_cost_range(runs,
                                                               gainId,
                                                               costIncrement,
                                                               proportion=50,
                                                               bottom=True)),
            ('avg +1SD',
             stats.get_avg_derived_gain_plusSD_at_cost_range(
                 gainId, runs, costIncrement)),
            ('avg -1SD',
             stats.get_avg_derived_gain_plusSD_at_cost_range(
                 gainId, runs, costIncrement, -1))
        ]

        defaultPlot(
            'cost', gainId, stats.get_max_cost_range(runs, costIncrement),
            yValueLists,
            stats.get_amount_of_runs_at_cost_range(runs, costIncrement),
            get_filename(gainId + 'AtCost', runs))
Ejemplo n.º 4
0
def plotGainsAtCost( runs, costIncrement ):
    sessid = str(runs[0].get_session_id())
    yValueLists = [
        (FiguresConfig.avgPlotName, stats.get_average_cumulated_gains_at_cost_range( runs, costIncrement ) ),
        ('top50%', stats.get_average_top_cumulated_gains_at_cost_range( runs, costIncrement, proportion = 50 ) ),
        ('bottom50%', stats.get_average_top_cumulated_gains_at_cost_range( runs, costIncrement, proportion = 50, bottom = True ) ),
        ('avg +1SD', stats.get_avg_cumulated_gain_plusSD_at_cost_range( runs, costIncrement ) ),
        ('avg -1SD', stats.get_avg_cumulated_gain_plusSD_at_cost_range( runs, costIncrement, -1 ) )
                   ]
    defaultPlot( 'cost', 'cg', stats.get_max_cost_range( runs, costIncrement ), yValueLists,
                 stats.get_amount_of_runs_at_cost_range(runs, costIncrement), get_filename('gainAtCost', runs))