-
Notifications
You must be signed in to change notification settings - Fork 1
KNNRegQualityEvalAlg
Samuel Gomes edited this page Jul 5, 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(playerModelBridge: PlayerModelBridge,
numberOfNNs: int,
qualityWeights: PlayerCharacteristics = {ability = 0.5, engagement = 0.5}): void| Name: expected type | Default value | Description |
|---|---|---|
| numberOfNNs: int | - | The number of nearest neighbors when executing KNN. |
- calcQuality(state: PlayerState): decimalComputes the quality of a player state, between 0 and 1. A higher value means better quality.
- distSort(elem: PlayerState): decimalComparer to sort a list by the Euclidean distance between the profiles of player states.
This class overrides predict(profile: InteractionsProfile, playerId: int) (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