{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 8, "minor" : 6, "revision" : 2, "architecture" : "x64", "modernui" : 1 } , "classnamespace" : "box", "rect" : [ 164.0, 165.0, 732.0, 575.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 1, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 1, "objectsnaponopen" : 1, "statusbarvisible" : 2, "toolbarvisible" : 1, "lefttoolbarpinned" : 0, "toptoolbarpinned" : 0, "righttoolbarpinned" : 0, "bottomtoolbarpinned" : 0, "toolbars_unpinned_last_save" : 0, "tallnewobj" : 0, "boxanimatetime" : 200, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "style" : "", "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { "box" : { "id" : "obj-23", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 160.0, 336.0, 80.0, 22.0 ], "text" : "route weights" } } , { "box" : { "id" : "obj-7", "maxclass" : "dict.view", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 28.0, 399.0, 231.0, 75.0 ] } } , { "box" : { "id" : "obj-21", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 676.0, 225.0, 86.0, 22.0 ], "text" : "dump_weights" } } , { "box" : { "id" : "obj-12", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 5, "outlettype" : [ "dictionary", "", "", "", "" ], "patching_rect" : [ 85.0, 353.0, 61.0, 22.0 ], "saved_object_attributes" : { "embed" : 0, "legacy" : 0, "parameter_enable" : 0, "parameter_mappable" : 0 } , "text" : "dict" } } , { "box" : { "id" : "obj-11", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 9.0, 185.0, 94.0, 22.0 ], "text" : "script start 2 3 4" } } , { "box" : { "id" : "obj-8", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 7.0, 134.0, 150.0, 34.0 ], "text" : "0.5. Restart the main script" } } , { "box" : { "id" : "obj-3", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 765.0, 18.0, 150.0, 34.0 ], "text" : "4. save/load your trained models" } } , { "box" : { "id" : "obj-40", "linecount" : 5, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 281.0, 450.0, 50.0, 77.0 ], "text" : "weights dictionary u266000897" } } , { "box" : { "id" : "obj-36", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 785.0, 101.0, 107.0, 22.0 ], "text" : "load myDict kieran" } } , { "box" : { "id" : "obj-35", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 783.0, 69.0, 110.0, 22.0 ], "text" : "save myDict kieran" } } , { "box" : { "data" : { } , "id" : "obj-33", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 5, "outlettype" : [ "dictionary", "", "", "", "" ], "patching_rect" : [ 768.0, 215.0, 129.0, 22.0 ], "saved_object_attributes" : { "embed" : 1, "legacy" : 0, "parameter_enable" : 0, "parameter_mappable" : 0 } , "text" : "dict myDict @embed 1" } } , { "box" : { "id" : "obj-32", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 7.0, 18.0, 122.0, 20.0 ], "text" : "0. Install tf package" } } , { "box" : { "id" : "obj-30", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 484.0, 230.0, 150.0, 48.0 ], "text" : "args are input shape, output shape, and size of the single hidden layer" } } , { "box" : { "id" : "obj-28", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 339.0, 44.0, 152.0, 34.0 ], "text" : "Uses basic SGD optimizer with 0.01 learning rate" } } , { "box" : { "id" : "obj-26", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 547.0, 18.0, 150.0, 20.0 ], "text" : "3. Run the trained model" } } , { "box" : { "id" : "obj-24", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 339.0, 18.0, 150.0, 20.0 ], "text" : "2. Train for 100k epochs" } } , { "box" : { "id" : "obj-22", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 187.0, 25.0, 150.0, 20.0 ], "text" : "1. Add training points" } } , { "box" : { "id" : "obj-20", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "parameter_enable" : 0, "patching_rect" : [ 204.0, 62.0, 24.0, 24.0 ] } } , { "box" : { "id" : "obj-18", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "bang", "bang", "bang", "bang" ], "patching_rect" : [ 204.0, 101.0, 52.0, 22.0 ], "text" : "t b b b b" } } , { "box" : { "id" : "obj-17", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 204.0, 215.0, 107.0, 22.0 ], "text" : "prepend dataPoint" } } , { "box" : { "id" : "obj-16", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 266.0, 146.0, 55.0, 22.0 ], "text" : "3 3 5 6 7" } } , { "box" : { "id" : "obj-15", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 266.0, 170.0, 55.0, 22.0 ], "text" : "4 4 7 8 9" } } , { "box" : { "id" : "obj-14", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 204.0, 170.0, 55.0, 22.0 ], "text" : "2 2 3 4 5" } } , { "box" : { "id" : "obj-13", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 204.0, 146.0, 55.0, 22.0 ], "text" : "1 1 1 2 3" } } , { "box" : { "id" : "obj-9", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 560.0, 74.0, 65.0, 22.0 ], "text" : "predict 5 5" } } , { "box" : { "id" : "obj-4", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 351.0, 84.0, 75.0, 22.0 ], "text" : "train 100000" } } , { "box" : { "bgmode" : 0, "border" : 0, "clickthrough" : 0, "enablehscroll" : 0, "enablevscroll" : 0, "id" : "obj-6", "lockeddragscroll" : 0, "lockedsize" : 0, "maxclass" : "bpatcher", "name" : "n4m.monitor.maxpat", "numinlets" : 1, "numoutlets" : 1, "offset" : [ 0.0, 0.0 ], "outlettype" : [ "bang" ], "patching_rect" : [ 523.0, 342.0, 400.0, 220.0 ], "viewvisibility" : 1 } } , { "box" : { "id" : "obj-5", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 7.0, 44.0, 98.0, 22.0 ], "text" : "script npm install" } } , { "box" : { "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 230.0, 296.0, 287.0, 22.0 ], "saved_object_attributes" : { "args" : [ 2, 3, 4 ], "autostart" : 1, "defer" : 0, "watch" : 1 } , "text" : "node.script tf.js @watch 1 @autostart 1 @args 2 3 4" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-23", 0 ], "order" : 1, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-40", 1 ], "order" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "source" : [ "obj-1", 1 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-7", 0 ], "source" : [ "obj-12", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "source" : [ "obj-13", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 0 ], "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "source" : [ "obj-18", 1 ] } } , { "patchline" : { "destination" : [ "obj-15", 0 ], "source" : [ "obj-18", 3 ] } } , { "patchline" : { "destination" : [ "obj-16", 0 ], "source" : [ "obj-18", 2 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "source" : [ "obj-20", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "source" : [ "obj-21", 0 ] } } , { "patchline" : { "destination" : [ "obj-12", 0 ], "source" : [ "obj-23", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "source" : [ "obj-36", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "source" : [ "obj-4", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "source" : [ "obj-5", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "source" : [ "obj-9", 0 ] } } ], "dependency_cache" : [ { "name" : "fit_jweb_to_bounds.js", "bootpath" : "C74:/packages/Node for Max/patchers/debug-monitor", "type" : "TEXT", "implicit" : 1 } , { "name" : "n4m.monitor.maxpat", "bootpath" : "C74:/packages/Node for Max/patchers/debug-monitor", "type" : "JSON", "implicit" : 1 } , { "name" : "resize_n4m_monitor_patcher.js", "bootpath" : "C74:/packages/Node for Max/patchers/debug-monitor", "type" : "TEXT", "implicit" : 1 } , { "name" : "tf.js", "bootpath" : "~/OneDrive/Documents/Max 8/tensorflow-max", "patcherrelativepath" : ".", "type" : "TEXT", "implicit" : 1 } ], "autosave" : 0 } }