Module ImportFrom alias Assign NameStore Str ImportFrom alias alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad NameLoad Return CompareLtLt UnaryOpUSub NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Return NameLoad If NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num Num CompareEq SubscriptLoad NameLoad Index Num Num body Assign SubscriptStore NameLoad Index NameLoad Num orelse AugAssignAdd SubscriptStore NameLoad Index NameLoad Call NameLoad BinOpDiv BinOpAdd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num AugAssignDiv NameStore Call NameLoad NameLoad If CompareLt Call NameLoad NameLoad NameLoad body Expr Call NameLoad Str Return NameLoad orelse Expr Call NameLoad TupleLoad Str NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr body If CompareGt Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad TupleLoad Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Slice NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore AttributeLoad NameLoad attr orelse Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Assign NameStore NameLoad If CompareEq Call NameLoad NameLoad Call NameLoad NameLoad body If NameLoad body Expr Call NameLoad Str orelse Assign NameStore NameLoad If NameLoad body Expr Call NameLoad NameLoad Expr Call NameLoad BinOpMult Str Num Expr Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt Call NameLoad Call NameLoad NameLoad BinOpSub NameLoad NameLoad Num body If NameLoad body Expr Call NameLoad Str orelse Assign NameStore NameLoad If NameLoad body Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If NameLoad body Expr Call NameLoad Str orelse Assign NameStore NameLoad If NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore Str If CompareNotEq SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Str body Assign NameStore BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad decorator_list
N/A __future__ print_function N/A __author__ Tom Schaul, tom@idsia.ch os unlink getcwd N/A os.path N/A profile N/A pstats N/A tempfile scipy randn zeros pybrain.structure.networks.network Network pybrain.datasets SequentialDataSet SupervisedDataSet pybrain.supervised BackpropTrainer pybrain.tools.customxml NetworkWriter NetworkReader epsilonCheck N/A N/A x epsilon N/A 1e-06 N/A N/A Checks that x is in (-epsilon, epsilon). N/A epsilon N/A abs epsilon N/A N/A N/A epsilon x epsilon N/A buildAppropriateDataset N/A N/A module N/A N/A N/A  build a sequential dataset with 2 sequences of 3 samples, with arndom input and target values,
    but the appropriate dimensions to be used on the provided module.  N/A N/A module sequential N/A N/A d N/A SequentialDataSet N/A module indim N/A module outdim N/A dummy N/A range 2 N/A N/A N/A N/A d newSequence N/A dummy N/A range 3 N/A N/A N/A N/A d addSample N/A randn N/A module indim N/A randn N/A module outdim N/A N/A d N/A SupervisedDataSet N/A module indim N/A module outdim N/A dummy N/A range 3 N/A N/A N/A N/A d addSample N/A randn N/A module indim N/A randn N/A module outdim N/A d N/A gradientCheck N/A N/A module tolerance dataset N/A 0.0001 None N/A N/A  check the gradient of a module with a randomly generated dataset,
    (and, in the case of a network, determine which modules contain incorrect derivatives).  N/A N/A N/A module paramdim 0 N/A N/A N/A print Module has no parameters N/A True N/A dataset N/A N/A d dataset N/A N/A d N/A buildAppropriateDataset module N/A b N/A BackpropTrainer module N/A res N/A N/A b _checkGradient d True N/A precision N/A zeros N/A module paramdim N/A seqres res N/A N/A N/A i p N/A enumerate seqres N/A N/A N/A N/A N/A p N/A 0 0 N/A N/A p N/A 1 0 N/A N/A N/A precision N/A i 0 N/A N/A N/A precision N/A i N/A abs N/A N/A N/A p N/A 0 N/A p N/A 1 N/A N/A p N/A 0 N/A p N/A 1 N/A precision N/A len res N/A N/A N/A max precision tolerance N/A N/A N/A print Perfect gradient N/A True N/A N/A N/A print N/A Incorrect gradient precision N/A N/A isinstance module Network N/A N/A index 0 N/A m N/A N/A module _containerIterator N/A N/A N/A N/A max N/A precision N/A index N/A index N/A m paramdim tolerance N/A N/A N/A print N/A Incorrect module: m N/A N/A res N/A -1 N/A index N/A index N/A m paramdim N/A index N/A m paramdim N/A N/A N/A print res N/A False N/A netCompare N/A N/A net1 net2 forwardpasses verbose N/A 1 False N/A N/A identical True N/A N/A N/A str net2 N/A str net1 N/A N/A verbose N/A N/A N/A print Same representation N/A N/A identical False N/A verbose N/A N/A N/A print net2 N/A N/A print N/A - 80 N/A N/A print net1 N/A outN N/A zeros N/A net2 outdim N/A outEnd N/A zeros N/A net1 outdim N/A N/A N/A net2 reset N/A N/A N/A net1 reset N/A dummy N/A range forwardpasses N/A N/A inp N/A randn N/A net2 indim N/A outN N/A N/A net2 activate inp N/A outEnd N/A N/A net1 activate inp N/A N/A N/A sum N/A map abs N/A outN outEnd 1e-09 N/A N/A verbose N/A N/A N/A print Same function N/A N/A identical False N/A verbose N/A N/A N/A print outN N/A N/A print outEnd N/A N/A N/A net2 __class__ N/A net1 __class__ N/A N/A verbose N/A N/A N/A print Same class N/A N/A identical False N/A verbose N/A N/A N/A print N/A net2 __class__ N/A N/A print N/A net1 __class__ N/A identical N/A xmlInvariance N/A N/A n forwardpasses N/A 1 N/A N/A  try writing a network to an xml file, reading it, rewrite it, reread it, and compare
    if the result looks the same (compare string representation, and forward processing
    of some random inputs)  N/A tmpfile N/A N/A tempfile NamedTemporaryFile dir . N/A f N/A tmpfile name N/A N/A N/A tmpfile close N/A N/A N/A NetworkWriter writeToFile n f N/A tmpnet N/A N/A NetworkReader readFrom f N/A N/A N/A NetworkWriter writeToFile tmpnet f N/A endnet N/A N/A NetworkReader readFrom f N/A N/A N/A os unlink f N/A N/A netCompare tmpnet endnet forwardpasses True N/A sortedProfiling N/A N/A code maxfunctions N/A 50 N/A N/A f temp/profilingInfo.tmp N/A N/A N/A N/A N/A N/A os path split N/A N/A N/A os path abspath N/A 1 tests N/A N/A f N/A ../ f N/A N/A N/A profile run code f N/A p N/A N/A pstats Stats f N/A N/A N/A N/A N/A p sort_stats time print_stats maxfunctions N/A