Skip to content

Commit 8f66c3d

Browse files
fix(init): fix potential icorrect layer initliation on launch on fresh system
1 parent 55c0154 commit 8f66c3d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/store.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import { writable } from "svelte/store";
22
import { cNeuron, Layer, af_enum } from "./NN_comps/NN_classes";
33
import { getPreference } from "../lib/db/localStorage";
44
export let currentNeuron_store = writable<cNeuron | null>(null);
5-
export let hidOutLayers_store = writable<Layer[]>([]);
5+
export let hidOutLayers_store = writable<Layer[]>([new Layer(1, 1, false)]);
66
export let hiddenLayersCount_store = writable<number>(1);
77
export let hiddenLayersNeuronCount_store = writable<number[]>([1]);
88
export let selActivaFn_store = writable<af_enum>(
99
getPreference<af_enum>("activation_function") || af_enum.relu
1010
);
1111
export let randomisedVals_store = writable(false);
12-

0 commit comments

Comments
 (0)