Module Expr Str Import alias Import alias identifier Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Assign NameStore ListLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad ClassDef bases body Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Str Assign NameStore ListLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad attr Str Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Num keyword Num keyword Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assert CompareLt SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assert CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad NameLoad Assert CompareEq NameLoad NameLoad decorator_list
N/A N/A Helper code for theanets unit tests. N/A climate N/A numpy np N/A N/A N/A climate enable_default_logging N/A N/A N/A N/A np random seed 13 N/A NUM_EXAMPLES 64 N/A NUM_INPUTS 7 N/A NUM_HID1 8 N/A NUM_HID2 12 N/A NUM_OUTPUTS 5 N/A NUM_CLASSES 6 N/A INPUTS N/A N/A N/A N/A N/A np random randn NUM_EXAMPLES NUM_INPUTS astype f N/A INPUT_WEIGHTS N/A N/A N/A abs N/A N/A N/A np random randn NUM_EXAMPLES NUM_INPUTS astype f N/A OUTPUTS N/A N/A N/A N/A N/A np random randn NUM_EXAMPLES NUM_OUTPUTS astype f N/A OUTPUT_WEIGHTS N/A N/A N/A abs N/A N/A N/A np random randn NUM_EXAMPLES NUM_OUTPUTS astype f N/A CLASSES N/A N/A N/A N/A N/A np random randint NUM_CLASSES size NUM_EXAMPLES astype i N/A CLASS_WEIGHTS N/A N/A N/A abs N/A N/A N/A np random rand NUM_EXAMPLES astype f N/A AE_DATA N/A INPUTS N/A WAE_DATA N/A INPUTS INPUT_WEIGHTS N/A AE_LAYERS N/A NUM_INPUTS NUM_HID1 NUM_HID2 NUM_INPUTS N/A CLF_DATA N/A INPUTS CLASSES N/A WCLF_DATA N/A INPUTS CLASSES CLASS_WEIGHTS N/A CLF_LAYERS N/A NUM_INPUTS NUM_HID1 NUM_HID2 NUM_CLASSES N/A REG_DATA N/A INPUTS OUTPUTS N/A WREG_DATA N/A INPUTS OUTPUTS OUTPUT_WEIGHTS N/A REG_LAYERS N/A NUM_INPUTS NUM_HID1 NUM_HID2 NUM_OUTPUTS RNN N/A N/A N/A NUM_TIMES 31 N/A INPUTS N/A N/A N/A N/A N/A np random randn NUM_EXAMPLES NUM_TIMES NUM_INPUTS astype f N/A INPUT_WEIGHTS N/A N/A N/A abs N/A N/A N/A np random randn NUM_EXAMPLES NUM_TIMES NUM_INPUTS astype f N/A OUTPUTS N/A N/A N/A N/A N/A np random randn NUM_EXAMPLES NUM_TIMES NUM_OUTPUTS astype f N/A OUTPUT_WEIGHTS N/A N/A N/A abs N/A N/A N/A np random randn NUM_EXAMPLES NUM_TIMES NUM_OUTPUTS astype f N/A CLASSES N/A N/A N/A N/A N/A np random randn NUM_EXAMPLES NUM_TIMES astype i N/A CLASS_WEIGHTS N/A N/A N/A abs N/A N/A N/A np random rand NUM_EXAMPLES NUM_TIMES astype f N/A AE_DATA N/A INPUTS N/A WAE_DATA N/A INPUTS INPUT_WEIGHTS N/A CLF_DATA N/A INPUTS CLASSES N/A WCLF_DATA N/A INPUTS CLASSES CLASS_WEIGHTS N/A REG_DATA N/A INPUTS OUTPUTS N/A WREG_DATA N/A INPUTS OUTPUTS OUTPUT_WEIGHTS N/A CNN N/A N/A N/A NUM_WIDTH 13 N/A NUM_HEIGHT 15 N/A FILTER_WIDTH 4 N/A FILTER_HEIGHT 3 N/A FILTER_SIZE N/A FILTER_WIDTH FILTER_HEIGHT N/A INPUTS N/A N/A N/A N/A N/A np random randn NUM_EXAMPLES NUM_WIDTH NUM_HEIGHT NUM_INPUTS astype f N/A CLF_DATA N/A INPUTS CLASSES N/A WCLF_DATA N/A INPUTS CLASSES CLASS_WEIGHTS N/A REG_DATA N/A INPUTS OUTPUTS N/A WREG_DATA N/A INPUTS OUTPUTS OUTPUT_WEIGHTS N/A assert_progress N/A N/A model data algo N/A sgd N/A N/A trainer N/A N/A model itertrain data algo algo momentum 0.5 batch_size 3 max_gradient_norm 1 N/A N/A train0 valid0 N/A next trainer N/A N/A train1 valid1 N/A next trainer N/A N/A N/A train1 N/A loss N/A valid0 N/A loss N/A N/A N/A valid1 N/A loss N/A valid0 N/A loss N/A assert_shape N/A N/A actual expected N/A N/A N/A N/A N/A isinstance expected tuple N/A N/A expected N/A NUM_EXAMPLES expected N/A N/A actual expected N/A