From 1d40a3942357e674d8761cf8647365847e900e34 Mon Sep 17 00:00:00 2001 From: Felix Sewing <121240566+fsewing@users.noreply.github.com> Date: Wed, 31 Jan 2024 15:18:54 +0100 Subject: [PATCH] add func collapsed --- SandwichNet/p5.gui.js | 1 + SandwichNet/sketch.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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;