mlpy.mdp.continuous.casml.CbTData

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

Bases: object

Transition 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
    },
    "act": {
        "type": "float",
        "value": "data.action",
        "is_index": False,
        "retrieval_method": "cosine",
    },
    "delta_state": {
        "type": "float",
        "value": "data.next_state - data.state",
        "is_index": False,
    }
}

rho : float, optional

The maximum permitted error when comparing cosine similarity of actions in the transition case base. Default is 0.99.

tau : float, optional

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

sigma : float, optional

The maximum permitted error when comparing actual with estimated transitions. Default is 0.2.