Module Expr Str ImportFrom alias Import alias identifier Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareNotEq NameLoad Num body Assign NameStore BinOpSub NameLoad SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub NameLoad Num Print SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign NameStore BinOpAdd BinOpAdd SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list decorator_list
N/A N/A Independent Discretization Representation Representation N/A numpy np N/A __copyright__ Copyright 2013, RLPy http://acl.mit.edu/RLPy N/A __credits__ N/A Alborz Geramifard Robert H. Klein Christoph Dann William Dabney Jonathan P. How N/A __license__ BSD 3-Clause N/A __author__ Alborz Geramifard IndependentDiscretization N/A Representation N/A N/A 
    Creates a feature for each discrete bin in each dimension; the feature 
    vector for a given state is comprised of binary features, where only the 
    single feature in a particular dimension is 1, all others 0.
    I.e., in a particular state, the sum of all elements of a feature vector
    equals the number of dimensions in the state space.

    Note that This is the minimum number of binary features required to 
    uniquely represent a state in a given finite discrete domain.

     __init__ N/A N/A self domain discretization N/A 20 N/A N/A N/A N/A self setBinsPerDimension domain discretization N/A N/A self features_num N/A int N/A sum N/A self bins_per_dim N/A N/A self maxFeatureIDperDimension N/A N/A N/A np cumsum N/A self bins_per_dim 1 N/A N/A N/A N/A super IndependentDiscretization self __init__ domain discretization N/A phi_nonTerminal N/A N/A self s N/A N/A N/A F_s N/A N/A np zeros N/A self features_num bool N/A N/A F_s N/A N/A N/A self activeInitialFeatures s 1 N/A F_s N/A getDimNumber N/A N/A self f N/A N/A N/A dim N/A N/A np searchsorted N/A self maxFeatureIDperDimension f N/A dim N/A getFeatureName N/A N/A self feat_id N/A N/A N/A N/A hasattr N/A self domain DimNames N/A N/A dim N/A N/A np searchsorted N/A self maxFeatureIDperDimension feat_id N/A index_in_dim feat_id N/A N/A dim 0 N/A N/A index_in_dim N/A feat_id N/A N/A self maxFeatureIDperDimension N/A N/A dim 1 N/A N/A N/A N/A self domain DimNames N/A dim N/A f_name N/A N/A N/A N/A N/A self domain DimNames N/A dim = N/A str index_in_dim N/A featureType N/A N/A self N/A N/A N/A bool N/A N/A