424 lines
8.4 KiB
Plaintext
424 lines
8.4 KiB
Plaintext
{
|
|
"patcher" : {
|
|
"fileversion" : 1,
|
|
"appversion" : {
|
|
"major" : 8,
|
|
"minor" : 6,
|
|
"revision" : 2,
|
|
"architecture" : "x64",
|
|
"modernui" : 1
|
|
}
|
|
,
|
|
"classnamespace" : "box",
|
|
"rect" : [ 1649.0, 182.0, 948.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-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, 150.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" : [ 128.0, 18.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" : [ 128.0, 49.0, 24.0, 24.0 ]
|
|
}
|
|
|
|
}
|
|
, {
|
|
"box" : {
|
|
"id" : "obj-18",
|
|
"maxclass" : "newobj",
|
|
"numinlets" : 1,
|
|
"numoutlets" : 4,
|
|
"outlettype" : [ "bang", "bang", "bang", "bang" ],
|
|
"patching_rect" : [ 128.0, 118.0, 52.0, 22.0 ],
|
|
"text" : "t b b b b"
|
|
}
|
|
|
|
}
|
|
, {
|
|
"box" : {
|
|
"id" : "obj-17",
|
|
"maxclass" : "newobj",
|
|
"numinlets" : 1,
|
|
"numoutlets" : 1,
|
|
"outlettype" : [ "" ],
|
|
"patching_rect" : [ 171.0, 215.0, 107.0, 22.0 ],
|
|
"text" : "prepend dataPoint"
|
|
}
|
|
|
|
}
|
|
, {
|
|
"box" : {
|
|
"id" : "obj-16",
|
|
"maxclass" : "message",
|
|
"numinlets" : 2,
|
|
"numoutlets" : 1,
|
|
"outlettype" : [ "" ],
|
|
"patching_rect" : [ 262.0, 163.0, 55.0, 22.0 ],
|
|
"presentation_linecount" : 3,
|
|
"text" : "3 3 5 6 7"
|
|
}
|
|
|
|
}
|
|
, {
|
|
"box" : {
|
|
"id" : "obj-15",
|
|
"maxclass" : "message",
|
|
"numinlets" : 2,
|
|
"numoutlets" : 1,
|
|
"outlettype" : [ "" ],
|
|
"patching_rect" : [ 330.0, 163.0, 55.0, 22.0 ],
|
|
"presentation_linecount" : 3,
|
|
"text" : "4 4 7 8 9"
|
|
}
|
|
|
|
}
|
|
, {
|
|
"box" : {
|
|
"id" : "obj-14",
|
|
"maxclass" : "message",
|
|
"numinlets" : 2,
|
|
"numoutlets" : 1,
|
|
"outlettype" : [ "" ],
|
|
"patching_rect" : [ 197.0, 163.0, 55.0, 22.0 ],
|
|
"presentation_linecount" : 3,
|
|
"text" : "2 2 3 4 5"
|
|
}
|
|
|
|
}
|
|
, {
|
|
"box" : {
|
|
"id" : "obj-13",
|
|
"maxclass" : "message",
|
|
"numinlets" : 2,
|
|
"numoutlets" : 1,
|
|
"outlettype" : [ "" ],
|
|
"patching_rect" : [ 128.0, 163.0, 55.0, 22.0 ],
|
|
"text" : "1 1 1 2 3"
|
|
}
|
|
|
|
}
|
|
, {
|
|
"box" : {
|
|
"id" : "obj-11",
|
|
"linecount" : 6,
|
|
"maxclass" : "message",
|
|
"numinlets" : 2,
|
|
"numoutlets" : 1,
|
|
"outlettype" : [ "" ],
|
|
"patching_rect" : [ 192.0, 413.0, 50.0, 91.0 ],
|
|
"text" : "8.914521 10.032911 11.035411"
|
|
}
|
|
|
|
}
|
|
, {
|
|
"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" : [ 484.0, 353.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,
|
|
"node_bin_path" : "",
|
|
"npm_bin_path" : "",
|
|
"watch" : 1
|
|
}
|
|
,
|
|
"text" : "node.script tf.js @watch 1 @autostart 1 @args 2 3 4"
|
|
}
|
|
|
|
}
|
|
],
|
|
"lines" : [ {
|
|
"patchline" : {
|
|
"destination" : [ "obj-11", 1 ],
|
|
"source" : [ "obj-1", 0 ]
|
|
}
|
|
|
|
}
|
|
, {
|
|
"patchline" : {
|
|
"destination" : [ "obj-6", 0 ],
|
|
"source" : [ "obj-1", 1 ]
|
|
}
|
|
|
|
}
|
|
, {
|
|
"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-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
|
|
}
|
|
|
|
}
|