Module Import alias identifier Import alias identifier ImportFrom alias Import alias FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Dict attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body If CompareGt NameLoad Num body Assign NameStore BinOpAdd BinOpAdd ListLoad Str NameLoad ListLoad Str orelse Assign NameStore NameLoad Assign NameStore Call NameLoad Num BinOpAdd BinOpSub Call NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr GeneratorExp Call AttributeLoad Str attr SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str keyword NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad NameLoad Index CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore BinOpDiv NameLoad SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpDiv NameLoad SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad SubscriptLoad NameLoad Index ListComp CompareIn NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult BinOpMult NameLoad NameLoad BinOpSub NameLoad NameLoad AugAssignAdd NameStore BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr NameLoad decorator_list TryExcept body Import alias Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num Num NameLoad NameLoad body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore BinOpDiv AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Num While CompareLt NameLoad NameLoad body AugAssignAdd NameStore Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore BinOpSub Call NameLoad Num While CompareGtE NameLoad Call NameLoad NameLoad body Assign NameStore BinOpSub Call NameLoad Num Expr Call NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Index NameLoad Slice NameLoad NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad If NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr decorator_list
N/A N/A pandas pd N/A numpy np sklearn.feature_extraction DictVectorizer N/A alias explode N/A N/A cues N/A N/A N/A N/A isinstance cues basestring N/A N/A cues N/A N/A cues split _ N/A N/A N/A N/A fromkeys cues True N/A orthoCoding N/A N/A strs grams sep N/A 2 None N/A N/A N/A N/A N/A np iterable grams N/A N/A grams N/A grams N/A result N/A N/A str strs N/A N/A cues N/A N/A str N/A list str N/A n grams N/A N/A N/A n 1 N/A N/A seq N/A N/A N/A # str N/A # N/A N/A seq str N/A count N/A max 0 N/A N/A N/A len seq n 1 N/A N/A N/A cues extend N/A N/A N/A join N/A seq N/A i N/A i n N/A i N/A xrange count N/A sep N/A N/A N/A N/A result append N/A N/A sep join cues N/A N/A N/A N/A result append N/A tuple cues N/A result N/A danks N/A N/A data N/A N/A N/A feats N/A DictVectorizer dtype int sparse False N/A marginals N/A N/A N/A N/A N/A data groupby Cues as_index False Frequency sum N/A marginals N/A N/A marginals rename columns N/A Frequency Total N/A data N/A N/A pd merge data marginals on Cues N/A result N/A N/A pd DataFrame N/A outcome N/A N/A N/A data Outcomes unique N/A N/A yes N/A data N/A N/A N/A data Outcomes outcome N/A M N/A N/A feats fit_transform N/A N/A explode c N/A c N/A yes Cues N/A P N/A N/A np diag N/A N/A yes Total N/A sum N/A yes Total N/A MTP N/A N/A N/A M T dot P N/A O N/A N/A yes Frequency N/A yes Total N/A left N/A N/A MTP dot M N/A right N/A N/A MTP dot O N/A V N/A N/A N/A np linalg solve left right N/A N/A result N/A outcome V N/A N/A result index N/A N/A feats get_feature_names N/A result N/A ndl N/A N/A data N/A N/A N/A vec N/A DictVectorizer dtype float sparse False N/A D N/A N/A N/A vec fit_transform N/A N/A explode c N/A c N/A data Cues N/A N/A data Frequency N/A N/A N/A N/A np newaxis N/A n N/A len N/A N/A vec get_feature_names N/A C N/A N/A np zeros N/A n n N/A row D N/A N/A nz N/A N/A np nonzero row N/A N/A N/A C N/A nz row N/A Z N/A N/A C sum axis 1 N/A C1 N/A C N/A Z N/A N/A N/A N/A np newaxis N/A out N/A DictVectorizer dtype float sparse False N/A X N/A N/A N/A out fit_transform N/A N/A explode c N/A c N/A data Outcomes N/A N/A data Frequency N/A N/A N/A N/A np newaxis N/A O N/A N/A np zeros N/A N/A len N/A N/A vec get_feature_names N/A len N/A N/A out get_feature_names N/A i N/A xrange N/A len X N/A N/A nz N/A N/A np nonzero N/A D N/A i N/A N/A N/A O N/A nz N/A X N/A i N/A O1 N/A O N/A Z N/A N/A N/A N/A np newaxis N/A W N/A N/A N/A N/A N/A np linalg pinv C1 dot O1 N/A N/A N/A pd DataFrame W columns N/A N/A out get_feature_names index N/A N/A vec get_feature_names N/A activation N/A N/A cues W N/A N/A N/A A N/A N/A np zeros N/A len N/A W columns N/A N/A isinstance cues basestring N/A N/A cues N/A N/A cues split _ N/A cue cues N/A N/A A N/A N/A W loc N/A cue N/A N/A N/A pd Series A index N/A W columns N/A activation N/A N/A cues W N/A N/A N/A N/A isinstance cues basestring N/A N/A cues N/A N/A cues split _ N/A N/A N/A N/A W N/A N/A N/A c cues N/A c N/A W index sum N/A _rwUpdate N/A N/A W D O Alpha Beta Lambda N/A N/A N/A Vtotal N/A N/A np dot N/A W T D N/A L N/A O Lambda N/A Vdelta N/A N/A Alpha Beta N/A L Vtotal N/A W N/A N/A D N/A N/A N/A N/A np newaxis Vdelta N/A N/A N/A N/A _ndl N/A rwUpdate N/A _ndl rwUpdate N/A N/A N/A ImportError N/A N/A rwUpdate _rwUpdate rw N/A N/A data Alpha Beta Lambda M distribution trajectory N/A 0.1 0.1 1.0 50000 None False N/A N/A cues N/A DictVectorizer dtype N/A np int sparse False N/A D N/A N/A cues fit_transform N/A N/A explode c N/A c N/A data Cues N/A out N/A DictVectorizer dtype N/A np int sparse False N/A O N/A N/A out fit_transform N/A N/A explode c N/A c N/A data Outcomes N/A W N/A N/A np zeros N/A N/A len N/A N/A cues get_feature_names N/A len N/A N/A out get_feature_names N/A N/A distribution None N/A N/A E N/A N/A data Frequency N/A sum N/A data Frequency N/A rand N/A N/A alias multinomial E N/A history N/A dict N/A i 0 N/A N/A i M N/A N/A i 1 N/A N/A distribution None N/A N/A item N/A N/A rand draw N/A N/A item N/A N/A distribution 1 N/A N/A item N/A len data N/A N/A item N/A N/A distribution 1 N/A N/A rwUpdate W N/A D N/A N/A item N/A N/A O N/A N/A item N/A Alpha Beta Lambda N/A trajectory N/A N/A N/A history N/A i N/A N/A pd DataFrame W columns N/A N/A out get_feature_names index N/A N/A cues get_feature_names copy True N/A trajectory N/A N/A N/A N/A N/A pd Panel from_dict history N/A N/A N/A N/A pd DataFrame W columns N/A N/A out get_feature_names index N/A N/A cues get_feature_names N/A