BamBirds 2021
|
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 |
Wrapper class for different score and win predictions
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
levelRange | The range of levels we want to get predictions for |
classifierType | The selected Classifier |
regressorType | The selected Regressor |
|
private |
Get the new Predictions for the current Level Features
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! |
|
private |
Update the feature maps of all considered levels we want to get predictions for.