mlpy.mdp.continuous.casml.CbVData

class mlpy.mdp.continuous.casml.CbVData(case_template, tau=None, **kwargs)[source]

Bases: object

Value case base data.

Parameters:

case_template : dict

The template from which to create a new case for the transition case base.

Example:

An example template for a feature named state with the specified feature parameters and a feature named state. data is the data from which to extract the case from. In this example it is expected that data has a member variable state.

{
    "state": {
        "type": "float",
        "value": "data.state",
        "is_index": True,
        "retrieval_method": "radius-n",
        "retrieval_method_params": 0.01
    },
    "value": {
        "type": "float",
        "value": "data.action",
        "is_index": False,
        "retrieval_method": "cosine",
    },
    "delta_state": {
        "type": "float",
        "value": "data.next_state - data.state",
        "is_index": False,
    }
}

tau : float, optional

The maximum permitted error when comparing most similar solutions in the transition case base. Default is 0.8.