mlpy.mdp.distrib.DefaultProbaCalcMethod.execute

DefaultProbaCalcMethod.execute(states)[source]

Execute the calculation.

Calculate the probability distribution based on the number of times the states have been seen so far.

Parameters:

states : dict[State, dict[str, int | float]]

The list of next states to consider.

Returns:

dict[State, dict[str, int | float]] :

The updated states information including the probabilities.