Skip to content

Commit

Permalink
update 293
Browse files Browse the repository at this point in the history
  • Loading branch information
ascoders committed Mar 18, 2024
1 parent a90c198 commit 91417be
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ class NeuralNetwork {
value: undefined,
w: Array.from({
length: index === 0 ? this.inputCount : layers[index - 1].count,
}).map(() => getRandomNumber(-3, 3)),
b: getRandomNumber(-3, 3),
c: getRandomNumber(-3, 3),
}).map(() => getRandomNumber()),
b: getRandomNumber(),
c: getRandomNumber(),
})),
}));
}
Expand Down

0 comments on commit 91417be

Please sign in to comment.