Module Import alias identifier Import alias identifier Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Import alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMult Num Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Num body For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr Print NameLoad Call AttributeLoad NameLoad attr BinOpPow BinOpSub AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignSub AttributeStore NameLoad attr BinOpMult NameLoad NameLoad
N/A N/A numpy np N/A numpy.random npr N/A sys N/A N/A N/A N/A sys path append .. N/A kayak N/A N 10000 N/A D 5 N/A P 3 N/A learn 1e-05 N/A batch_size 500 N/A X N/A N/A npr randn N D N/A true_W N/A N/A npr randn D P N/A Y N/A N/A N/A np dot X true_W N/A 0.1 N/A N/A npr randn N P N/A kyk_batcher N/A N/A kayak Batcher batch_size N N/A kyk_inputs N/A N/A kayak Inputs X kyk_batcher N/A kyk_targets N/A N/A kayak Targets Y kyk_batcher N/A W N/A 0.01 N/A N/A npr randn D P N/A kyk_W N/A N/A kayak Parameter W N/A kyk_out N/A N/A kayak MatMult kyk_inputs kyk_W N/A kyk_el_loss N/A N/A kayak L2Loss kyk_out kyk_targets N/A kyk_loss N/A N/A kayak MatSum kyk_el_loss N/A ii N/A xrange 100 N/A N/A batch kyk_batcher N/A N/A loss N/A kyk_loss value N/A loss N/A N/A np sum N/A N/A N/A kyk_W value true_W 2 N/A grad N/A N/A kyk_loss grad kyk_W N/A N/A kyk_W value N/A learn grad