Skip to content

Commit 654d4d7

Browse files
fix: use new layer for resetting
1 parent 7d5debf commit 654d4d7

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/components/NN_comps/NN_specs.svelte

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,7 @@
5656
$hiddenLayersCount_store = 1;
5757
$selActivaFn_store = af_enum.relu;
5858
$randomisedVals_store = false;
59-
$hidOutLayers_store.map((layer) => {
60-
layer.neurons.map((neuron) => {
61-
neuron.bias = 0;
62-
neuron.weights.map((weight) => {
63-
weight = 0;
64-
});
65-
});
66-
});
59+
$hidOutLayers_store = [new Layer(1, 1)];
6760
$currentNeuron_store = new cNeuron(0, 0);
6861
}
6962
</script>

0 commit comments

Comments
 (0)