BamBirds 2021
de.uniba.sme.bambirds.level_selection.Decision Class Reference
Collaboration diagram for de.uniba.sme.bambirds.level_selection.Decision:

Public Member Functions

 Decision (boolean primitiveCombination)
 
Map< Integer, Double > calculateProbabilityDistribution (Map< Integer, Integer > maxScores, Map< Integer, Long > costs, Map< Integer, PredictionTuple< Integer, Double > > predictions, Map< Integer, Level.State > levelStates, long timeLeft)
 

Private Member Functions

Map< Integer, Double > calculateImprovementPrediction (Map< Integer, Integer > maxScores, Map< Integer, Long > costs, Map< Integer, PredictionTuple< Integer, Double > > predictions, double brierScoreLoss, double scoresError, Map< Integer, State > levelStates, long timeLeft)
 

Private Attributes

final boolean primitiveCombination
 

Static Private Attributes

static final Logger log = LogManager.getLogger(Decision.class)
 

Detailed Description

Class for evaluating probabilities of levels from predictions and level states

Constructor & Destructor Documentation

◆ Decision()

de.uniba.sme.bambirds.level_selection.Decision.Decision ( boolean  primitiveCombination)
Parameters
primitiveCombinationif the combination of score prediction and win prediction should be primitive

Member Function Documentation

◆ calculateImprovementPrediction()

Map< Integer, Double > de.uniba.sme.bambirds.level_selection.Decision.calculateImprovementPrediction ( Map< Integer, Integer >  maxScores,
Map< Integer, Long >  costs,
Map< Integer, PredictionTuple< Integer, Double > >  predictions,
double  brierScoreLoss,
double  scoresError,
Map< Integer, State levelStates,
long  timeLeft 
)
private

Calculate the improvement based on the accuracy of the predictions. More info about the formula can be found in the Project Report 2019 under Level-Selection->Architecture->Decision

Parameters
maxScoresThe max achieved scores of the Levels
costsThe Costs for a Levels, measured in time needed
predictionsThe predictions for all Levels
brierScoreLossThe error of the Won-Classifier
scoresErrorThe error of the Score-Rregressor
levelStatesThe states all Levels are in. If state is Resigned, improvement will not be calculated
timeLeftThe time left in the competition
Returns
The improvement prediction, not measured in Score points, only difference important

◆ calculateProbabilityDistribution()

Map< Integer, Double > de.uniba.sme.bambirds.level_selection.Decision.calculateProbabilityDistribution ( Map< Integer, Integer >  maxScores,
Map< Integer, Long >  costs,
Map< Integer, PredictionTuple< Integer, Double > >  predictions,
Map< Integer, Level.State >  levelStates,
long  timeLeft 
)

Calculates the probability of selection for each level

Parameters
maxScoresThe until now achieved scores. Structure: {levelid: score}
costsThe costs of all levels measured by the time needed to complete
predictionsThe predictions for all levels in the next round. Structure: {levelid: PredictionTuple(scorePrediction, winProbability)}
levelStatesThe states all levels are currently in. Structure: {levelid: State}
timeLeftThe remaining time for the competition
Returns
The probability distribution for all levels. Structure: {levelid: probability}

The documentation for this class was generated from the following file: