Module ImportFrom alias Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num Return BinOpDiv NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub Num NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpMult Call AttributeLoad NameLoad attr Num NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num NameLoad AugAssignMult NameStore BinOpDiv Num Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListComp SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index BinOpSub SubscriptLoad NameLoad Index NameLoad Num comprehension NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore BinOpMult UnaryOpUSub BinOpDiv Num Call NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr ListComp CompareEq NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareGt Call NameLoad AttributeLoad NameLoad attr Num CompareGt SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Return Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr ListComp IfExp CompareGt NameLoad Num Num Num comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad ExtSlice Slice Slice Index NameLoad Index NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice Index BinOpSub BinOpSub NameLoad NameLoad Num Index BinOpSub BinOpSub NameLoad NameLoad Num orelse If CompareEq NameLoad Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad ExtSlice Index NameLoad Index NameLoad Slice Slice SubscriptLoad NameLoad ExtSlice Index BinOpSub BinOpSub NameLoad NameLoad Num Index BinOpSub BinOpSub NameLoad NameLoad Num Slice Slice orelse Raise Call NameLoad BinOpAdd Str Call NameLoad NameLoad Return NameLoad decorator_list
N/A __future__ absolute_import N/A numpy np N/A scipy sp six.moves range six.moves zip to_categorical N/A N/A y nb_classes N/A None N/A N/A Convert class vector (integers from 0 to nb_classes)
    to binary class matrix, for use with categorical_crossentropy.
     N/A N/A nb_classes N/A N/A nb_classes N/A N/A N/A np max y 1 N/A Y N/A N/A np zeros N/A N/A len y nb_classes N/A i N/A range N/A len y N/A N/A N/A Y N/A N/A i N/A y N/A i 1.0 N/A Y N/A normalize N/A N/A a axis order N/A -1 2 N/A N/A l2 N/A N/A np atleast_1d N/A N/A N/A np linalg norm a order axis N/A N/A l2 N/A N/A l2 0 1 N/A N/A a N/A N/A np expand_dims l2 axis N/A binary_logloss N/A N/A p y N/A N/A N/A epsilon 1e-15 N/A p N/A N/A sp maximum epsilon p N/A p N/A N/A sp minimum N/A 1 epsilon p N/A res N/A sum N/A N/A y N/A N/A sp log p N/A N/A N/A sp subtract 1 y N/A N/A sp log N/A N/A sp subtract 1 p N/A res N/A -1.0 N/A len y N/A res N/A multiclass_logloss N/A N/A P Y N/A N/A N/A npreds N/A N/A N/A P N/A i N/A N/A N/A Y N/A i 1 N/A i N/A range N/A len Y N/A score N/A N/A N/A 1.0 N/A len Y N/A N/A np sum N/A N/A np log npreds N/A score N/A accuracy N/A N/A p y N/A N/A N/A N/A N/A np mean N/A N/A a b N/A N/A a b N/A zip p y N/A probas_to_classes N/A N/A y_pred N/A N/A N/A N/A N/A N/A len N/A y_pred shape 1 N/A N/A N/A y_pred shape N/A 1 1 N/A N/A N/A categorical_probas_to_classes y_pred N/A N/A N/A np array N/A N/A N/A p 0.5 1 0 N/A p y_pred N/A categorical_probas_to_classes N/A N/A p N/A N/A N/A N/A N/A np argmax p axis 1 N/A convert_kernel N/A N/A kernel dim_ordering N/A th N/A N/A Converts a kernel matrix (numpy array)
    from Theano format to TensorFlow format
    (or reciprocally, since the transformation
    is its own inverse).
     N/A new_kernel N/A N/A np copy kernel N/A N/A dim_ordering th N/A N/A w N/A N/A kernel shape N/A 2 N/A h N/A N/A kernel shape N/A 3 N/A i N/A range w N/A N/A j N/A range h N/A N/A N/A new_kernel N/A N/A N/A N/A i N/A j N/A kernel N/A N/A N/A N/A N/A N/A w i 1 N/A N/A N/A h j 1 N/A N/A N/A dim_ordering tf N/A N/A w N/A N/A kernel shape N/A 0 N/A h N/A N/A kernel shape N/A 1 N/A i N/A range w N/A N/A j N/A range h N/A N/A N/A new_kernel N/A N/A i N/A j N/A N/A N/A kernel N/A N/A N/A N/A w i 1 N/A N/A N/A h j 1 N/A N/A N/A N/A N/A Exception N/A Invalid dim_ordering:  N/A str dim_ordering N/A new_kernel N/A