Module ImportFrom alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Expr Call NameLoad Str Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad NameStore body For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore Call NameLoad NameLoad Return BinOpSub NameLoad Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad comprehension NameStore NameLoad CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return ListComp TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad NameLoad Index NameLoad CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Dict For NameStore SetComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr ListComp BinOpAdd SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad While Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareIn SubscriptLoad NameLoad Index Num NameLoad body Continue Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore DictComp NameLoad SetComp NameLoad comprehension TupleStore NameStore NameStore NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr BinOpAdd ListLoad Call AttributeLoad NameLoad attr NameLoad ListComp BinOpAdd SubscriptLoad NameLoad Index NameLoad NameLoad comprehension TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Dict AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad ListComp SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr BinOpAdd NameLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list decorator_list Call NameLoad Str ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad TupleLoad Num BinOpSub NameLoad Call NameLoad NameLoad keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Delete SubscriptDel NameLoad Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr orelse Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Assign SubscriptStore SubscriptLoad NameLoad Index Num Index Num Call AttributeLoad NameLoad attr NameLoad keyword Str Assign SubscriptStore SubscriptLoad NameLoad Index Num Index Num Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assert Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad NameLoad ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Delete SubscriptDel NameLoad Index NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Num Index Num Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assert Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad If BoolOpOr CompareNotEq AttributeLoad NameLoad attr Num CompareNotEq AttributeLoad NameLoad attr Num CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Raise NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num handlers ExceptHandler body Pass If CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num orelse Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Num Assign SubscriptStore NameLoad ExtSlice Slice BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num Num Slice SubscriptLoad NameLoad ExtSlice Slice Num Slice Assign NameStore BinOpMult Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Num Assign SubscriptStore NameLoad ExtSlice Slice BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num Num Slice SubscriptLoad NameLoad ExtSlice Slice Num Slice Assign SubscriptStore NameLoad ExtSlice Slice Index NameLoad Slice NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index NameLoad Slice NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Num Index Num NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Num Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return TupleLoad Call NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ print_function N/A math N/A N/A N/A fst N/A N/A N/A ImportError N/A N/A N/A print No PyFST module, trying to work without it. If you want to run the language model, please install openfst and PyFST N/A numpy N/A theano N/A itertools theano tensor Op theano.gradient disconnected_type fuel.utils do_not_pickle_attributes picklable_itertools.extras equizip collections defaultdict deque toposort toposort_flatten lvsr.error_rate reward_matrix gain_matrix N/A EPSILON 0 N/A MAX_STATES 7 N/A NOT_STATE -1 read_symbols N/A N/A fname N/A N/A N/A syms N/A N/A fst SymbolTable eps N/A N/A open fname sf N/A N/A line sf N/A N/A N/A s i N/A N/A N/A N/A line strip split N/A N/A syms N/A s N/A int i N/A syms N/A FST N/A object N/A N/A Picklable wrapper around FST. __init__ N/A N/A self path N/A N/A N/A N/A self path path N/A load N/A N/A self N/A N/A N/A N/A self fst N/A N/A fst read N/A self path N/A N/A self isyms N/A dict N/A N/A N/A N/A self fst isyms items N/A __getitem__ N/A N/A self state N/A N/A N/A Returns all arcs of the state i N/A N/A N/A self fst N/A state N/A combine_weights N/A N/A self N/A args N/A N/A m N/A max args N/A N/A m N/A N/A math log N/A sum N/A N/A N/A math exp N/A m x N/A x args N/A x None N/A get_arcs N/A N/A self state character N/A N/A N/A N/A N/A state N/A arc nextstate N/A arc ilabel N/A float N/A arc weight N/A arc N/A self N/A state N/A N/A arc ilabel character N/A transition N/A N/A self states character N/A N/A N/A arcs N/A list N/A N/A itertools chain N/A N/A N/A self get_arcs state character N/A state states N/A next_states N/A N/A next_state N/A N/A arc N/A 1 N/A arc arcs N/A N/A N/A next_states N/A next_state N/A N/A self combine_weights N/A N/A N/A states N/A N/A arc N/A 0 N/A arc N/A 3 N/A arc arcs N/A N/A arc N/A 1 next_state N/A next_states N/A expand N/A N/A self states N/A N/A N/A seen N/A set N/A depends N/A defaultdict list N/A queue N/A deque N/A state states N/A N/A N/A N/A queue append state N/A N/A N/A seen add state N/A N/A len queue N/A N/A state N/A N/A queue popleft N/A arc N/A N/A self get_arcs state EPSILON N/A N/A N/A N/A N/A depends N/A N/A arc N/A 1 append N/A N/A arc N/A 0 N/A arc N/A 3 N/A N/A N/A arc N/A 1 seen N/A N/A N/A N/A N/A queue append N/A arc N/A 1 N/A N/A N/A seen add N/A arc N/A 1 N/A depends_for_toposort N/A key N/A state N/A N/A state weight value N/A N/A key value N/A N/A depends items N/A order N/A toposort_flatten depends_for_toposort N/A next_states states N/A next_state order N/A N/A N/A next_states N/A next_state N/A N/A self combine_weights N/A N/A N/A N/A next_states get next_state N/A N/A N/A next_states N/A prev_state weight N/A N/A prev_state weight N/A depends N/A next_state N/A next_states N/A explain N/A N/A self input_ N/A N/A N/A input_ N/A list input_ N/A states N/A N/A N/A self fst start 0 N/A N/A print N/A N/A Initial states: {} format states N/A states N/A N/A self expand states N/A N/A print N/A N/A Expanded states: {} format states N/A N/A char ilabel N/A zip input_ N/A N/A N/A self isyms N/A char N/A char input_ N/A N/A states N/A N/A self transition states ilabel N/A N/A print N/A N/A {} consumed: {} format char states N/A states N/A N/A self expand states N/A N/A print N/A N/A Expanded states: {} format states N/A result None N/A N/A state weight N/A N/A states items N/A N/A N/A N/A numpy isfinite N/A weight N/A float N/A N/A N/A self fst N/A state final N/A N/A N/A print N/A N/A Finite state {} with path weight {} and its own weight {} format state weight N/A N/A N/A self fst N/A state final N/A result N/A N/A self combine_weights result N/A weight N/A float N/A N/A N/A self fst N/A state final N/A N/A print N/A N/A Total weight: {} format result N/A result N/A N/A N/A do_not_pickle_attributes fst FSTTransitionOp N/A Op N/A N/A Performs transition in an FST.

    Given a state and an input symbol (character) returns the next state.

    Parameters
    ----------
    fst : FST instance
    remap_table : dict
        Maps neutral network characters to FST characters.

     N/A __props__ N/A __init__ N/A N/A self fst remap_table N/A N/A N/A N/A self fst fst N/A N/A self remap_table remap_table N/A pad N/A N/A self arr value N/A N/A N/A N/A N/A numpy pad arr N/A 0 N/A MAX_STATES N/A len arr mode constant constant_values value N/A perform N/A N/A self node inputs output_storage N/A N/A N/A N/A all_states all_weights all_inputs inputs N/A all_next_states N/A N/A all_next_weights N/A N/A N/A states weights input_ N/A equizip all_states all_weights all_inputs N/A N/A states_dict N/A dict N/A zip states weights N/A N/A states_dict N/A NOT_STATE N/A next_states_dict N/A N/A N/A self fst transition states_dict N/A N/A self remap_table N/A input_ N/A next_states_dict N/A N/A N/A self fst expand next_states_dict N/A next_states_dict N/A N/A N/A next_states next_weights N/A zip N/A N/A next_states_dict items N/A N/A N/A next_states next_weights N/A N/A N/A N/A N/A N/A all_next_states append N/A N/A self pad next_states NOT_STATE N/A N/A N/A all_next_weights append N/A N/A self pad next_weights 0 N/A N/A N/A output_storage N/A 0 N/A 0 N/A N/A numpy array all_next_states dtype int64 N/A N/A N/A output_storage N/A 1 N/A 0 N/A N/A numpy array all_next_weights N/A make_node N/A N/A self states weights input_ N/A N/A N/A N/A hasattr self _props N/A states N/A N/A N/A theano tensor as_tensor_variable states N/A weights N/A N/A N/A theano tensor as_tensor_variable weights N/A input_ N/A N/A N/A theano tensor as_tensor_variable input_ N/A N/A N/A theano Apply self N/A states weights input_ N/A N/A N/A states type N/A N/A weights type N/A N/A FSTCostsOp N/A Op N/A N/A Returns transition costs for all possible input symbols.

    Parameters
    ----------
    fst : FST instance
    remap_table : dict
        Maps neutral network characters to FST characters.
    no_transition_cost : float
        Cost of going to the start state when no arc for an input
        symbol is available.

    Notes
    -----
    It is assumed that neural network characters start from zero.

     N/A __props__ N/A __init__ N/A N/A self fst remap_table no_transition_cost N/A N/A N/A N/A self fst fst N/A N/A self remap_table remap_table N/A N/A self no_transition_cost no_transition_cost N/A perform N/A N/A self node inputs output_storage N/A N/A N/A N/A all_states all_weights inputs N/A all_costs N/A N/A N/A states weights N/A zip all_states all_weights N/A N/A states_dict N/A dict N/A zip states weights N/A N/A states_dict N/A NOT_STATE N/A costs N/A N/A N/A numpy ones N/A len N/A self remap_table dtype N/A N/A theano config floatX N/A self no_transition_cost N/A states_dict N/A N/A total_weight N/A N/A N/A self fst combine_weights N/A N/A states_dict values N/A N/A nn_character fst_character N/A N/A N/A self remap_table items N/A N/A next_states_dict N/A N/A N/A self fst transition states_dict fst_character N/A next_states_dict N/A N/A N/A self fst expand next_states_dict N/A next_states_dict N/A N/A next_total_weight N/A N/A N/A self fst combine_weights N/A N/A next_states_dict values N/A N/A costs N/A nn_character N/A next_total_weight total_weight N/A N/A N/A all_costs append costs N/A N/A N/A output_storage N/A 0 N/A 0 N/A N/A numpy array all_costs N/A make_node N/A N/A self states weights N/A N/A N/A N/A hasattr self _props N/A states N/A N/A N/A theano tensor as_tensor_variable states N/A weights N/A N/A N/A theano tensor as_tensor_variable weights N/A N/A N/A theano Apply self N/A states weights N/A N/A N/A N/A theano tensor matrix N/A N/A RewardOp N/A Op N/A N/A __props__ N/A __init__ N/A N/A self eos_label alphabet_size N/A N/A N/A Computes matrices of rewards and gains. N/A N/A self eos_label eos_label N/A N/A self alphabet_size alphabet_size N/A perform N/A N/A self node inputs output_storage N/A N/A N/A N/A groundtruth recognized inputs N/A N/A N/A N/A groundtruth ndim 2 N/A N/A recognized ndim 2 N/A N/A N/A groundtruth shape N/A 1 N/A N/A recognized shape N/A 1 N/A N/A ValueError N/A batch_size N/A N/A groundtruth shape N/A 1 N/A all_rewards N/A N/A numpy zeros N/A N/A recognized shape N/A N/A self alphabet_size dtype int64 N/A all_gains N/A N/A numpy zeros N/A N/A recognized shape N/A N/A self alphabet_size dtype int64 N/A alphabet N/A list N/A range N/A self alphabet_size N/A index N/A range batch_size N/A N/A y N/A list N/A groundtruth N/A N/A N/A index N/A y_hat N/A list N/A recognized N/A N/A N/A index N/A N/A N/A eos_pos N/A N/A y index N/A self eos_label N/A y N/A y N/A N/A eos_pos 1 N/A N/A N/A N/A N/A N/A N/A self eos_label y_hat N/A N/A y_hat_eos_pos N/A N/A y_hat index N/A self eos_label N/A y_hat_trunc N/A y_hat N/A N/A y_hat_eos_pos 1 N/A N/A y_hat_trunc y_hat N/A rewards_trunc N/A reward_matrix y y_hat_trunc alphabet N/A self eos_label N/A gains_trunc N/A gain_matrix y y_hat_trunc alphabet given_reward_matrix rewards_trunc N/A gains N/A N/A N/A numpy ones N/A N/A len y_hat N/A len alphabet -1000 N/A N/A gains N/A N/A N/A N/A N/A gains_trunc shape N/A 0 1 N/A N/A gains_trunc N/A N/A -1 N/A N/A rewards N/A N/A N/A numpy ones N/A N/A len y_hat N/A len alphabet -1 N/A N/A rewards N/A N/A N/A N/A N/A rewards_trunc shape N/A 0 1 N/A N/A rewards_trunc N/A N/A -1 N/A N/A N/A all_rewards N/A N/A N/A index N/A rewards N/A N/A all_gains N/A N/A N/A index N/A gains N/A N/A N/A output_storage N/A 0 N/A 0 all_rewards N/A N/A N/A output_storage N/A 1 N/A 0 all_gains N/A grad N/A N/A self N/A args kwargs N/A N/A N/A N/A disconnected_type N/A disconnected_type N/A make_node N/A N/A self groundtruth recognized N/A N/A N/A recognized N/A N/A tensor as_tensor_variable recognized N/A groundtruth N/A N/A tensor as_tensor_variable groundtruth N/A N/A N/A theano Apply self N/A groundtruth recognized N/A N/A N/A tensor ltensor3 N/A N/A tensor ltensor3 N/A N/A