colosseum.emission_maps.state_linear_optimal

 1from colosseum.emission_maps.base import StateLinear
 2
 3
 4class StateLinearOptimal(StateLinear):
 5    """
 6    The `StateLinearOptimal` emission map creates a non-tabular representation such that it is linear in the state value
 7    function of the optimal policy.
 8    """
 9
10    @property
11    def V(self):
12        return self._mdp.optimal_value_functions[1].ravel()
class StateLinearOptimal(colosseum.emission_maps.base.StateLinear):
 5class StateLinearOptimal(StateLinear):
 6    """
 7    The `StateLinearOptimal` emission map creates a non-tabular representation such that it is linear in the state value
 8    function of the optimal policy.
 9    """
10
11    @property
12    def V(self):
13        return self._mdp.optimal_value_functions[1].ravel()

The StateLinearOptimal emission map creates a non-tabular representation such that it is linear in the state value function of the optimal policy.

V
Returns
  • np.ndarray: The value function w.r.t. which the non-tabular representation is linear.