My goal is to enhance the functionality of this visualization by being able to increase or decrease the nodes in the hidden layers. I have attempted to achieve this by adding the following code:
I am facing difficulties in adjusting the number of hidden layers as intended. As a result, I am seeking assistance. Can anyone guide me on how to accomplish this task and whether my approach is correct?
for (var i = 0; i < vm.hiddenLayersDepths[hiddenLayerLoop]; i++) {
function minus() {
vm.hiddenLayersDepths.map(function(val){return --val;});
//Arrays.fill(vm.hiddenLayersDepths, vm.hiddenLayersDepths[0] - 1);
}
function plus() {
if (vm.hiddenLayersDepths[0] < 5) {
vm.hiddenLayersDepths.map(function(val){return ++val;});
//Arrays.fill(vm.hiddenLayersDepths, vm.hiddenLayersDepths[0] + 1);
}
}
}
EDIT: My aim is to apply the + or - operation independently to each hidden layer.