Skip to content

AccuratePRSConfigsGenAlg

SamGomes edited this page Jul 2, 2024 · 2 revisions

AccuratePRSConfigsGenAlg

(legacy) This class is a child of ConfigsGenAlg. Used mainly for the preliminary simulations testing different estimator parameters. It is a derivative of PureRandomSearchConfigsGenAlg that uses the real preferences and evolution of the players instead of the predictions of Quality Evaluation Algorithms.

Constructor and Attributes

Constructor

AccuratePRSConfigsGen(playerModelBridge, interactionsProfileTemplate, simulationFunc, numberOfConfigChoices, preferredNumberOfPlayersPerGroup, minNumberOfPlayersPerGroup, maxNumberOfPlayersPerGroup, qualityWeights)
Name: expected type Default value Description
simulationFunc: function(playerModelBridge: PlayerModelBridge, profile: InteractionsProfile, playerId: int) - A reference to the function which simulates new states for players
numberOfConfigChoices: int 100 The number of configurations to generate, from where to choose the best one.
qualityWeights: PlayerCharacteristics (ability: 0.5, engagement: 0.5) The importance given to each player characteristic when computing the quality of a configuration
currIteration: int 0 The order number of the current iteration.

Methods

updateCurrIteration(currIteration: int): void

Description

Updates the current iteration value, which can be required to compute players' progress.

calcQuality(state: PlayerState): float

Description

Computes the quality of a player state, between 0 and 1. A higher value means better quality.

Overrides organize() and init() (see ConfigsGenAlg). init() initializes currIteration to 0.

Clone this wiki locally