From 4bbf3ee8a313ec6fb0cb29fece2b867c640a2c8f Mon Sep 17 00:00:00 2001 From: Keshav-writes-code Date: Wed, 4 Sep 2024 07:23:27 +0530 Subject: [PATCH] fix: make currentNeuron vairable store Ids not actuall duplkicate of values --- src/components/everything.svelte | 109 ++++++++++++++++++++----------- 1 file changed, 71 insertions(+), 38 deletions(-) diff --git a/src/components/everything.svelte b/src/components/everything.svelte index a28eb8e..e30b912 100644 --- a/src/components/everything.svelte +++ b/src/components/everything.svelte @@ -1,4 +1,9 @@
@@ -139,7 +172,7 @@ {:else} @@ -172,11 +205,11 @@
{#if currentNeuron} - {#each currentNeuron.weights as _, i} + {#each hiddenLayers[currentNeuron.idx].neurons[currentNeuron.idy].weights as _, i} {/each} @@ -428,10 +461,10 @@