Module Expr Str Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias 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 Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad ListLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad ListLoad AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad Str attr Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Str AugAssignAdd NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad Str attr BinOpAdd NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore ListLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults ListLoad NameLoad NameLoad Num Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Assign NameStore Lambda arguments args NameParam defaults TupleLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Print Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad orelse If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults TupleLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num For NameStore NameLoad body If CompareGt Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num body Break Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index Num If CompareNotEq NameLoad NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad NameLoad Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign SubscriptStore NameLoad ExtSlice Slice Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If CompareIn NameLoad NameLoad body Assign NameStore ListComp Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num orelse Assign NameStore ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults TupleLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num Assign NameStore Num For NameStore NameLoad body If CompareLt Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num body Continue orelse If CompareGt Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num body Break Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index Num If BoolOpOr CompareNotEq NameLoad NameLoad CompareNotEq NameLoad NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr If BoolOpAnd CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad NameLoad Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad NameLoad Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad NameLoad Num Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad If BoolOpAnd CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num orelse Assign NameStore ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults TupleLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num Assign NameStore Num For NameStore NameLoad body If CompareLt Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num body Continue orelse If CompareGt Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num body Break Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index Num If BoolOpOr CompareNotEq NameLoad NameLoad CompareNotEq NameLoad NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr If BoolOpAnd CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad If BoolOpAnd CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index NameLoad ListLoad SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Index NameLoad Str keyword Str Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad orelse Assign NameStore Call NameLoad ListLoad For NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num body If CompareGt Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num body Break If CompareGtE Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore DictComp NameLoad Num comprehension NameStore NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body If CompareGt AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad If BoolOpOr CompareGt AttributeLoad NameLoad attr Num CompareGtE SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr body AugAssignSub NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr orelse Assign NameStore Num For NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpMult Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad NameLoad For NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body AugAssignSub SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If CompareLt SubscriptLoad NameLoad Index NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body AugAssignDiv NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assert CompareIs NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad attr Num Num Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr CompareGt NameLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad For NameStore NameLoad body For NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body If BoolOpAnd CompareLt SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr BoolOpOr CompareLt SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr CompareLt SubscriptLoad NameLoad Index NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad AugAssignAdd NameStore Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareLt BinOpMult NameLoad BinOpSub NameLoad Num Call NameLoad AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareGt NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad AugAssignAdd NameStore Num orelse For TupleStore NameStore NameStore Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareGt NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad AugAssignAdd NameStore Num If NameLoad body Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str AugAssignAdd AttributeStore NameLoad attr BinOpMult BinOpMult SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpMult BinOpPow SubscriptLoad NameLoad Index NameLoad Num BinOpPow SubscriptLoad NameLoad Index NameLoad Num If CompareEq AttributeLoad NameLoad attr Num body Return Num Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword ListLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore DictComp TupleLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore Call NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd SubscriptStore NameLoad Index AttributeLoad NameLoad attr Num AugAssignAdd SubscriptStore NameLoad Index AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num AugAssignAdd SubscriptStore NameLoad Index AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AugAssignAdd SubscriptStore NameLoad Index AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AugAssignDiv NameStore NameLoad Assign NameStore Call NameLoad BinOpBitOr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpUSub Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Delete SubscriptDel AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad Assign NameStore DictComp TupleLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore Call NameLoad AttributeLoad NameLoad attr BoolOpAnd CompareNotIn BinOpBitOr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad AttributeLoad NameLoad attr CompareEq Call NameLoad BinOpBitAnd Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Call NameLoad NameLoad Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpBitOr NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return BinOpSub AttributeLoad NameLoad attr Num decorator_list decorator_list TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Print Str ImportFrom alias
N/A N/A Kernelized Incremental Feature Dependency Discovery N/A numpy np Representation Representation itertools combinations rlpy.Tools addNewElementForAllActions PriorityQueueWithNovelty N/A matplotlib.pyplot plt 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__ Christoph Dann <cdann@mit.edu> KernelizedFeature N/A object N/A N/A index -1 N/A relevance 0.0 N/A dim N/A N/A center None __init__ N/A N/A self center dim kernel index base_ids kernel_args N/A -1 None N/A N/A N/A N/A self index index N/A N/A self kernel_args kernel_args N/A N/A self center center N/A N/A self dim dim N/A N/A self kernel kernel N/A N/A base_ids None N/A N/A N/A self base_ids N/A frozenset N/A N/A self index N/A N/A N/A self base_ids base_ids N/A __str__ N/A N/A self N/A N/A N/A res N/A N/A { N/A N/A ,  join N/A sorted N/A N/A str i N/A i N/A self base_ids }   N/A res N/A N/A ,  join N/A N/A N/A s{}={:.3g} format N/A d 1 N/A N/A self center N/A d N/A d N/A self dim N/A res N/A output N/A N/A self s N/A N/A N/A N/A N/A self kernel s N/A self center N/A self dim N/A self kernel_args N/A N/A Candidate N/A object N/A N/A 
    candidate feature as a combination of two existing features
     N/A activation_count 0.0 N/A td_error_sum 0.0 N/A relevance 0.0 N/A idx1 -1 N/A idx2 -1 __init__ N/A N/A self idx1 idx2 N/A N/A N/A N/A self idx1 idx1 N/A N/A self idx2 idx2 N/A N/A KernelizediFDD N/A Representation N/A N/A 
    Kernelized version of iFDD
     N/A features N/A N/A candidates N/A N/A base_id_sets N/A set N/A base_feature_ids N/A N/A max_relevance 0.0 __init__ N/A N/A self domain kernel active_threshold discover_threshold kernel_args normalization sparsify max_active_base_feat max_base_feat_sim N/A N/A True True 2 0.7 N/A N/A N/A N/A N/A super KernelizediFDD self __init__ domain N/A N/A self kernel kernel N/A N/A self kernel_args kernel_args N/A N/A self active_threshold active_threshold N/A N/A self discover_threshold discover_threshold N/A N/A self normalization normalization N/A N/A self sparsify sparsify N/A N/A self sorted_ids N/A PriorityQueueWithNovelty N/A N/A self max_active_base_feat max_active_base_feat N/A N/A self max_base_feat_sim max_base_feat_sim N/A N/A self candidates N/A N/A N/A self features N/A N/A N/A self base_features_ids N/A N/A N/A self max_relevance 0.0 N/A show_features N/A N/A self N/A N/A N/A l N/A N/A N/A N/A self sorted_ids toList N/A N/A key N/A N/A N/A x N/A N/A N/A len N/A N/A N/A self features N/A x base_ids N/A tuple N/A N/A N/A self features N/A x dim N/A tuple N/A N/A N/A N/A self features N/A x center N/A N/A N/A N/A self features N/A x dim N/A N/A N/A l sort key key N/A i l N/A N/A f N/A N/A self features N/A i N/A N/A N/A {:>5} {:>20} format i f N/A plot_1d_features N/A N/A self dimension_idx N/A None N/A N/A Creates a plot for each specified dimension of the state space and shows
        all 1-dimensional features in this dimension
        If no indices are passed, all dimensions are plotted

        dimension_idx: either a single dimension index (int) or a list of indices.
         N/A idx dimension_idx N/A N/A isinstance idx int N/A N/A idx N/A idx N/A N/A N/A idx None N/A N/A idx N/A N/A self domain continuous_dims N/A feat_list N/A range N/A self features_num N/A key N/A N/A N/A x N/A N/A N/A len N/A N/A N/A self features N/A x base_ids N/A tuple N/A N/A N/A self features N/A x dim N/A tuple N/A N/A N/A N/A self features N/A x center N/A N/A N/A N/A self features N/A x dim N/A N/A N/A feat_list sort key key N/A last_i -1 N/A k feat_list N/A N/A N/A N/A len N/A N/A N/A self features N/A k dim 1 N/A N/A N/A cur_i N/A N/A N/A N/A self features N/A k dim N/A 0 N/A N/A cur_i last_i N/A N/A N/A last_i idx N/A N/A N/A N/A plt draw N/A N/A cur_i idx N/A N/A xi N/A N/A np linspace N/A N/A N/A self domain statespace_limits N/A N/A cur_i 0 N/A N/A N/A self domain statespace_limits N/A N/A cur_i 1 200 N/A x N/A N/A np zeros N/A 200 N/A N/A N/A N/A self domain statespace_limits shape N/A 0 N/A N/A x N/A N/A N/A cur_i xi N/A N/A N/A plt figure N/A N/A Feature Dimension {} format cur_i N/A N/A cur_i idx N/A N/A y N/A N/A N/A N/A N/A self features N/A k output xk N/A xk x N/A N/A N/A plt plot x y label N/A N/A id {} format k N/A last_i cur_i N/A N/A N/A plt draw N/A plot_2d_features N/A N/A self d1 d2 n_lines N/A None None 3 N/A N/A 
        plot contours of all 2-dimensional features covering
        dimension d1 and d2. For each feature, n_lines number of lines
        are shown.
        If no dimensions are specified, the first two continuous dimensions
        are shown.

        d1, d2: indices of dimensions to show
        n_lines: number of countour lines per feature (default: 3)
         N/A N/A N/A d1 None N/A d2 None N/A N/A idx N/A N/A N/A self domain continuous_dims N/A 2 N/A N/A idx N/A d1 d2 N/A N/A N/A idx sort N/A feat_list N/A range N/A self features_num N/A key N/A N/A N/A x N/A N/A N/A len N/A N/A N/A self features N/A x base_ids N/A tuple N/A N/A N/A self features N/A x dim N/A tuple N/A N/A N/A N/A self features N/A x center N/A N/A N/A N/A self features N/A x dim N/A N/A N/A feat_list sort key key N/A last_i -1 N/A last_j -1 N/A k feat_list N/A N/A N/A N/A len N/A N/A N/A self features N/A k dim 2 N/A N/A N/A N/A N/A N/A len N/A N/A N/A self features N/A k dim 2 N/A N/A N/A cur_i N/A N/A N/A N/A self features N/A k dim N/A 0 N/A cur_j N/A N/A N/A N/A self features N/A k dim N/A 1 N/A N/A N/A cur_i last_i N/A cur_j last_j N/A N/A N/A N/A last_i idx N/A last_j idx N/A N/A N/A N/A plt draw N/A N/A N/A cur_i idx N/A cur_j idx N/A N/A xi N/A N/A np linspace N/A N/A N/A self domain statespace_limits N/A N/A cur_i 0 N/A N/A N/A self domain statespace_limits N/A N/A cur_i 1 100 N/A xj N/A N/A np linspace N/A N/A N/A self domain statespace_limits N/A N/A cur_j 0 N/A N/A N/A self domain statespace_limits N/A N/A cur_j 1 100 N/A N/A X Y N/A N/A np meshgrid xi xj N/A N/A N/A plt figure N/A N/A Feature Dimensions {} and {} format cur_i cur_j N/A N/A N/A cur_i idx N/A cur_j idx N/A N/A Z N/A N/A np zeros_like X N/A m N/A xrange 100 N/A N/A n N/A xrange 100 N/A N/A x N/A N/A np zeros N/A N/A N/A N/A self domain statespace_limits shape N/A 0 N/A N/A x N/A cur_i N/A X N/A N/A m n N/A N/A x N/A cur_j N/A Y N/A N/A m n N/A N/A Z N/A N/A m n N/A N/A N/A N/A self features N/A k output x N/A N/A N/A plt contour X Y Z n_lines N/A last_i cur_i N/A last_j cur_j N/A N/A N/A plt draw N/A plot_2d_feature_centers N/A N/A self d1 d2 N/A None None N/A N/A 
        plot the centers of all 2-dimensional features covering
        dimension d1 and d2.
        If no dimensions are specified, the first two continuous dimensions
        are shown.

        d1, d2: indices of dimensions to show
         N/A N/A N/A d1 None N/A d2 None N/A N/A idx N/A N/A N/A self domain continuous_dims N/A 2 N/A N/A idx N/A d1 d2 N/A N/A N/A idx sort N/A feat_list N/A range N/A self features_num N/A key N/A N/A N/A x N/A N/A N/A len N/A N/A N/A self features N/A x base_ids N/A tuple N/A N/A N/A self features N/A x dim N/A tuple N/A N/A N/A N/A self features N/A x center N/A N/A N/A N/A self features N/A x dim N/A N/A N/A feat_list sort key key N/A last_i -1 N/A last_j -1 N/A k feat_list N/A N/A N/A N/A len N/A N/A N/A self features N/A k dim 2 N/A N/A N/A N/A N/A N/A len N/A N/A N/A self features N/A k dim 2 N/A N/A N/A cur_i N/A N/A N/A N/A self features N/A k dim N/A 0 N/A cur_j N/A N/A N/A N/A self features N/A k dim N/A 1 N/A N/A N/A cur_i last_i N/A cur_j last_j N/A N/A N/A N/A last_i idx N/A last_j idx N/A N/A N/A N/A plt draw N/A N/A N/A cur_i idx N/A cur_j idx N/A N/A N/A N/A plt figure N/A N/A Feature Dimensions {} and {} format cur_i cur_j N/A N/A N/A cur_i idx N/A cur_j idx N/A N/A N/A N/A plt plot N/A N/A N/A N/A N/A self features N/A k center N/A cur_i N/A N/A N/A N/A N/A self features N/A k center N/A cur_j r marker x N/A last_i cur_i N/A last_j cur_j N/A N/A N/A plt draw N/A phi_nonTerminal N/A N/A self s N/A N/A N/A out N/A N/A np zeros N/A self features_num N/A N/A N/A self sparsify N/A N/A i N/A xrange N/A self features_num N/A N/A N/A out N/A i N/A N/A N/A N/A self features N/A i output s N/A N/A active_bases N/A set N/A N/A i N/A N/A N/A N/A self sorted_ids toList N/A -1 N/A N/A N/A N/A len N/A N/A N/A self features N/A i base_ids 1 N/A N/A N/A N/A N/A N/A N/A N/A self features N/A i output s N/A self active_threshold N/A N/A N/A N/A active_bases add i N/A base_vals N/A k 1.0 N/A k active_bases N/A i N/A N/A N/A self sorted_ids toList N/A N/A N/A N/A active_bases issuperset N/A N/A N/A self features N/A i base_ids N/A N/A N/A N/A self sparsify 1 N/A N/A N/A out N/A i N/A N/A N/A N/A self features N/A i output s N/A N/A N/A N/A self sparsify 2 N/A N/A out N/A i N/A self active_threshold N/A N/A active_bases N/A N/A N/A self features N/A i base_ids N/A N/A u 0 N/A k N/A N/A N/A self features N/A i base_ids N/A N/A u N/A max u N/A base_vals N/A k N/A N/A out N/A i N/A N/A N/A N/A N/A self features N/A i output s u N/A k N/A N/A N/A self features N/A i base_ids N/A N/A N/A base_vals N/A k N/A out N/A i N/A N/A N/A base_vals N/A k 0 N/A N/A N/A N/A active_bases remove k N/A N/A self normalization N/A N/A summ N/A N/A out sum N/A N/A summ 0 N/A N/A out N/A N/A out sum N/A out N/A phi_raw N/A N/A self s terminal N/A N/A N/A N/A terminal False N/A out N/A N/A np zeros N/A self features_num N/A i N/A xrange N/A self features_num N/A N/A N/A out N/A i N/A N/A N/A N/A self features N/A i output s N/A out N/A post_discover N/A N/A self s terminal a td_error phi_s N/A None N/A N/A N/A phi_s None N/A N/A phi_s N/A N/A self phi s terminal N/A phi_s_unnorm N/A N/A self phi_raw s terminal N/A discovered 0 N/A Q N/A N/A N/A N/A self Qs s terminal phi_s phi_s reshape -1 1 N/A active_indices N/A list N/A N/A N/A np where N/A phi_s_unnorm N/A self active_threshold N/A 0 N/A active_dimensions N/A N/A np zeros N/A len s dtype int N/A closest_neighbor N/A N/A np zeros N/A len s N/A i active_indices N/A N/A j N/A N/A N/A self features N/A i dim N/A N/A N/A active_dimensions N/A j 1 N/A N/A closest_neighbor N/A j N/A max N/A closest_neighbor N/A j N/A phi_s_unnorm N/A i N/A j N/A xrange N/A len s N/A N/A N/A N/A N/A active_dimensions N/A j N/A self max_active_base_feat N/A N/A N/A closest_neighbor N/A j N/A self max_base_feat_sim N/A N/A active_dimensions N/A j 1 N/A N/A N/A N/A active_indices append N/A N/A self add_base_feature s j Q Q N/A discovered 1 N/A discovered N/A N/A phi_s N/A N/A self phi s terminal N/A la N/A len active_indices N/A N/A N/A la N/A la 1 N/A len N/A self candidates N/A N/A N/A ind cand N/A N/A N/A self candidates items N/A N/A N/A g h ind N/A rel N/A N/A self update_relevance_stat cand g h td_error s a phi_s N/A N/A self max_relevance N/A max rel N/A self max_relevance N/A N/A rel N/A self discover_threshold N/A N/A N/A N/A self add_refined_feature g h Q Q N/A discovered 1 N/A N/A N/A g h N/A combinations active_indices 2 N/A N/A cand N/A N/A N/A self candidates get N/A g h N/A N/A cand None N/A N/A N/A rel N/A N/A self update_relevance_stat cand g h td_error s a phi_s N/A N/A self max_relevance N/A max rel N/A self max_relevance N/A N/A rel N/A self discover_threshold N/A N/A N/A N/A self add_refined_feature g h Q Q N/A discovered 1 N/A discovered N/A N/A N/A self max_relevance 0.0 N/A discovered N/A update_relevance_stat N/A N/A self candidate index1 index2 td_error s a phi_s N/A N/A N/A 
        make sure that inputs are ordered, i.e.,index1 <= index2!
        returns the relevance of a potential feature combination
         N/A N/A candidate td_error_sum N/A N/A N/A phi_s N/A index1 N/A phi_s N/A index2 td_error N/A N/A candidate activation_count N/A N/A N/A phi_s N/A index1 2 N/A N/A phi_s N/A index2 2 N/A N/A N/A candidate activation_count 0.0 N/A N/A 0.0 N/A rel N/A N/A N/A np abs N/A candidate td_error_sum N/A N/A np sqrt N/A candidate activation_count N/A rel N/A add_base_feature N/A N/A self center dim Q N/A N/A N/A 
        adds a new 1-dimensional feature and returns its index
         N/A new_f N/A KernelizedFeature center center dim N/A dim kernel_args N/A self kernel_args kernel N/A self kernel index N/A self features_num N/A N/A N/A N/A self features append new_f N/A N/A N/A N/A self base_id_sets add N/A new_f base_ids N/A N/A N/A N/A self sorted_ids push -1 N/A self features_num N/A N/A N/A N/A self logger debug N/A N/A Added Feature {} {} format N/A self features_num new_f N/A new_cand N/A N/A f N/A self features_num N/A Candidate f N/A self features_num N/A f N/A xrange N/A self features_num N/A dim N/A N/A N/A self features N/A f dim N/A N/A N/A N/A self candidates update new_cand N/A N/A f _ N/A N/A new_cand keys N/A N/A N/A N/A N/A self base_id_sets add N/A N/A new_f base_ids N/A N/A N/A self features N/A f base_ids N/A N/A self features_num 1 N/A N/A self normalization N/A N/A N/A self weight_vec N/A addNewElementForAllActions N/A self weight_vec N/A N/A self domain actions_num Q N/A N/A N/A self weight_vec N/A addNewElementForAllActions N/A self weight_vec N/A N/A self domain actions_num N/A N/A N/A self features_num 1 N/A add_refined_feature N/A N/A self index1 index2 Q N/A N/A N/A 
        adds the combination of 2 existing features to the representation
         N/A f1 N/A N/A self features N/A index1 N/A f2 N/A N/A self features N/A index2 N/A new_center N/A N/A np zeros_like N/A f1 center N/A cnt N/A N/A np zeros_like N/A f1 center N/A N/A cnt N/A N/A f1 dim 1 N/A N/A cnt N/A N/A f2 dim 1 N/A N/A cnt N/A N/A cnt 0 1.0 N/A N/A new_center N/A N/A f1 dim N/A N/A f1 center N/A N/A f1 dim N/A N/A new_center N/A N/A f2 dim N/A N/A f2 center N/A N/A f2 dim N/A new_center cnt N/A new_dim N/A list N/A N/A frozenset N/A f1 dim N/A frozenset N/A f2 dim N/A new_base_ids N/A N/A f1 base_ids N/A f2 base_ids N/A N/A N/A new_dim sort N/A new_f N/A KernelizedFeature center new_center dim new_dim kernel_args N/A self kernel_args kernel N/A self kernel index N/A self features_num base_ids new_base_ids N/A N/A N/A N/A self features append new_f N/A N/A N/A N/A self sorted_ids push N/A N/A len N/A new_f base_ids N/A self features_num N/A N/A N/A N/A self base_id_sets add N/A new_f base_ids N/A N/A N/A self candidates N/A N/A index1 index2 N/A new_cand N/A N/A f N/A self features_num N/A Candidate f N/A self features_num N/A f N/A xrange N/A self features_num N/A N/A N/A N/A N/A N/A self features N/A f base_ids new_base_ids N/A self base_id_sets N/A N/A len N/A N/A frozenset N/A N/A N/A self features N/A f dim N/A frozenset new_dim 0 N/A N/A c _ N/A N/A new_cand keys N/A N/A N/A N/A N/A self base_id_sets add N/A new_base_ids N/A N/A N/A self features N/A c base_ids N/A N/A N/A N/A self candidates update new_cand N/A N/A N/A N/A self logger debug N/A N/A Added refined feature {} {} format N/A self features_num new_f N/A N/A N/A N/A self logger debug N/A N/A {} candidates format N/A len N/A self candidates N/A N/A self features_num 1 N/A N/A self normalization N/A N/A N/A self weight_vec N/A addNewElementForAllActions N/A self weight_vec N/A N/A self domain actions_num Q N/A N/A N/A self weight_vec N/A addNewElementForAllActions N/A self weight_vec N/A N/A self domain actions_num N/A N/A N/A self features_num 1 N/A N/A N/A N/A kernels * N/A N/A N/A ImportError N/A N/A C-Extension for kernels not available, expect slow runtime slow_kernels *