Skip to content

Commit 23509a7

Browse files
Merge pull request #20 from piximi/issue/548-replace-simpleCNN-seed
[mod] closes #548
2 parents 0bd4edb + eb9a99d commit 23509a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/models/SimpleCNN/loadSimpleCNN.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const createSimpleCNN = (
1010
numClasses: number,
1111
randomizeWeights: boolean
1212
) => {
13-
const seed = randomizeWeights ? Math.random() : 0.42;
13+
const seed = randomizeWeights ? Math.floor(Math.random() * 1000) : 42;
1414

1515
const imageWidth = inputShape.width;
1616
const imageHeight = inputShape.height;

0 commit comments

Comments
 (0)