-
Notifications
You must be signed in to change notification settings - Fork 1
KNNRegQualityEvalAlg
Samuel Gomes edited this page Jul 12, 2024
·
3 revisions

This class is a child of RegQualityEvalAlg. It contains the procedure for the estimation of new states using the algorithm K-Nearest Neighbors for Regression.
KNNRegQualityEvalAlg(player_model_bridge: PlayerModelBridge,
k: int,
quality_weights: PlayerCharacteristics = {ability = 0.5, engagement = 0.5}): void| Name: expected type | Default value | Description |
|---|---|---|
| __k: int | - | The number of nearest neighbors when executing KNN. |
__calc_quality(state: PlayerState): decimal Computes the quality of a player state, between 0 and 1. A higher value means better quality.
__dist_sort(elem: PlayerState): decimalComparer to sort a list by the Euclidean distance between the profiles of player states.
This class overrides evaluate (see QualityEvalAlg).
Adaptation
Group Configuration Generation
- ConfigsGenAlg
- RandomConfigsGenAlg
- PureRandomSearchConfigsGenAlg
- EvolutionaryConfigsGenAlg
- ODPIPConfigsGenAlg (exact)
- CLinkConfigsGenAlg (legacy)
Preferences Estimation
Quality Evaluation Algorithms
- QualityEvalAlg
- Group-Based Quality Evaluation:
- Regression-Based Quality Evaluation:
- Tabular Quality Evaluation:
Auxiliary Structures
- InteractionsProfile
- PlayerCharacteristics
- PlayerState
- Personality (Inherent Preference):
- PlayerStatesDataFrame
Model Bridges
Player Data Trim