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

Classes

enum  ClassifierType
 
enum  RegressorType
 

Public Member Functions

 Prediction (int levelRange, ClassifierType classifierType, RegressorType regressorType)
 
Map< Integer, PredictionTuple< Integer, Double > > predict ()
 
Map< Integer, PredictionTuple< Integer, Double > > predict (int lastLevelId)
 
Map< Integer, PredictionTuple< Integer, Double > > predict (Map< Integer, Map< String, Integer > > levelFeatures)
 
Map< Integer, PredictionTuple< Integer, Double > > getPredictions ()
 

Static Public Attributes

static final Map< String, Integer > STRATEGY_WEIGHTS
 

Private Member Functions

Map< Integer, PredictionTuple< Integer, Double > > predict (Map< Integer, Map< String, Integer > > levelFeatures, int lastLevelId)
 
void updateLevelFeatures ()
 

Private Attributes

int levelRange
 
Map< Integer, Map< String, Integer > > levelFeatures
 
ClassifierModel classifierModel
 
RegressorModel regressorModel
 
Map< Integer, PredictionTuple< Integer, Double > > predictions
 

Detailed Description

Wrapper class for different score and win predictions

Constructor & Destructor Documentation

◆ Prediction()

de.uniba.sme.bambirds.level_selection.Prediction.Prediction ( int  levelRange,
ClassifierType  classifierType,
RegressorType  regressorType 
)

Construct a Prediction instance that handles the execution of the selected Models

Parameters
levelRangeThe range of levels we want to get predictions for
classifierTypeThe selected Classifier
regressorTypeThe selected Regressor

Member Function Documentation

◆ predict()

Map< Integer, PredictionTuple< Integer, Double > > de.uniba.sme.bambirds.level_selection.Prediction.predict ( Map< Integer, Map< String, Integer > >  levelFeatures,
int  lastLevelId 
)
private

Get the new Predictions for the current Level Features

Parameters
levelFeatures(Optional) The LevelFeatures for all Levels. Structure: {levelID : {featureName : value}}
lastLevelId(Optional) The last Level that was played. Will be used for not needing to calculate all predictions but only the one for which the features have changed. Is not implemented yet!
Returns

◆ updateLevelFeatures()

void de.uniba.sme.bambirds.level_selection.Prediction.updateLevelFeatures ( )
private

Update the feature maps of all considered levels we want to get predictions for.


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