diff --git a/SandwichNet/p5.gui.js b/SandwichNet/p5.gui.js index 78220e6..b0f4e43 100644 --- a/SandwichNet/p5.gui.js +++ b/SandwichNet/p5.gui.js @@ -146,6 +146,7 @@ }; // pass through ... + this.toggleCollapsed = function() { qs.toggleCollapsed(); }; this.show = function() { qs.show(); }; this.hide = function() { qs.hide(); }; this.toggleVisibility = function() { qs.toggleVisibility(); }; diff --git a/SandwichNet/sketch.js b/SandwichNet/sketch.js index cbf1c20..2721ff9 100755 --- a/SandwichNet/sketch.js +++ b/SandwichNet/sketch.js @@ -72,7 +72,8 @@ function setup() frameRate(60); var gui = createGui('Neural Network Config'); gui.addGlobals('inputNodes', 'hiddenNodes', 'outputNodes', 'learningRate'); - + gui.toggleCollapsed(); + oldInputNodes = inputNodes; oldHiddenNodes = hiddenNodes; oldOutputNodes = outputNodes;