Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit 1014e6b

Browse files
yining1023joeyklee
authored andcommitted
Update multiple-layers: only the first layer needs inputShape (#230)
1 parent c7e75aa commit 1014e6b

File tree

1 file changed

+1
-2
lines changed
  • p5js/NeuralNetwork/NeuralNetwork_multiple-layers

1 file changed

+1
-2
lines changed

p5js/NeuralNetwork/NeuralNetwork_multiple-layers/sketch.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const nn_options = {
1010
}),
1111
ml5.tf.layers.dense({
1212
units: 16,
13-
inputShape: [1],
1413
activation: 'sigmoid',
1514
}),
1615
ml5.tf.layers.dense({
@@ -69,4 +68,4 @@ function createTrainingData(){
6968

7069
// function draw(){
7170

72-
// }
71+
// }

0 commit comments

Comments
 (0)