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 Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareLt NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Return SubscriptLoad NameLoad Index Num orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad AugAssignMult NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body AugAssignAdd SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num BinOpSub Num AttributeLoad NameLoad attr orelse AugAssignAdd SubscriptStore NameLoad Index NameLoad BinOpDiv BinOpSub Num AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A epsilon-Greedy Policy Policy Policy 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 eGreedy N/A Policy N/A N/A  Greedy policy with epsilon-probability for uniformly random exploration.

    From a given state, it selects the action with the highest expected value
    (greedy with respect to value function), but with some probability 
    ``epsilon``, takes a random action instead.
    This explicitly balances the exploration/exploitation tradeoff, and 
    ensures that in the limit of infinite samples, the agent will
    have explored the entire domain.

     N/A epsilon None N/A old_epsilon None N/A forcedDeterministicAmongBestActions None __init__ N/A N/A self representation epsilon forcedDeterministicAmongBestActions seed N/A 0.1 False 1 N/A N/A N/A self epsilon epsilon N/A N/A self forcedDeterministicAmongBestActions forcedDeterministicAmongBestActions N/A N/A N/A N/A super eGreedy self __init__ representation seed N/A pi N/A N/A self s terminal p_actions N/A N/A N/A coin N/A N/A N/A self random_state rand N/A N/A coin N/A self epsilon N/A N/A N/A N/A N/A self random_state choice p_actions N/A N/A b_actions N/A N/A N/A self representation bestActions s terminal p_actions N/A N/A self forcedDeterministicAmongBestActions N/A N/A N/A b_actions N/A 0 N/A N/A N/A N/A N/A self random_state choice b_actions N/A prob N/A N/A self s terminal p_actions N/A N/A N/A p N/A N/A N/A np ones N/A len p_actions N/A len p_actions N/A p N/A self epsilon N/A b_actions N/A N/A N/A self representation bestActions s terminal p_actions N/A N/A self forcedDeterministicAmongBestActions N/A N/A N/A p N/A N/A b_actions N/A 0 N/A 1 N/A self epsilon N/A N/A N/A p N/A b_actions N/A N/A 1 N/A self epsilon N/A len b_actions N/A p N/A turnOffExploration N/A N/A self N/A N/A N/A N/A self old_epsilon N/A self epsilon N/A N/A self epsilon 0 N/A turnOnExploration N/A N/A self N/A N/A N/A N/A self epsilon N/A self old_epsilon N/A N/A