Skip to content

Commit

Permalink
Merge pull request #39 from marcpinet/fix-readme-typo
Browse files Browse the repository at this point in the history
fix: typo
  • Loading branch information
marcpinet authored Apr 25, 2024
2 parents 89a3dcc + 1c46e35 commit bf1c510
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ model = Model()
model.add(Input(10)) # 10 features
model.add(Dense(8))
model.add(Dense(1))
model.add(Activation(Sigmoid())) # many way to tell the model which Activation Function you'd like, see the next example
model.add(Activation(Sigmoid())) # many ways to tell the model which Activation Function you'd like, see the next example

# Compile the model
model.compile(loss_function='bce', optimizer='sgd')
Expand All @@ -82,8 +82,7 @@ from neuralnetlib.metrics import accuracy_score
# Create and compile a model
model = Model()
model.add(Input(28, 28, 1)) # For example, MNIST images
model.add(Conv2D(32, kernel_size=3, padding='same'))
model.add(Activation('relu')) # activation supports both str...
model.add(Conv2D(32, kernel_size=3, padding='same'), activation='relu') # activation supports both str...
model.add(BatchNormalization())
model.add(MaxPooling2D(pool_size=2))
model.add(Dense(64, activation='relu'))
Expand Down

0 comments on commit bf1c510

Please sign in to comment.