Skip to content

Commit

Permalink
Update mse -> bce (#19056)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frightera authored Jan 15, 2024
1 parent dfec3ef commit 9c42023
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions keras/metrics/confusion_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class Precision(Metric):
```python
model.compile(optimizer='sgd',
loss='mse',
loss='binary_crossentropy',
metrics=[keras.metrics.Precision()])
```
Expand Down Expand Up @@ -465,7 +465,7 @@ class Recall(Metric):
```python
model.compile(optimizer='sgd',
loss='mse',
loss='binary_crossentropy',
metrics=[keras.metrics.Recall()])
```
Expand Down Expand Up @@ -728,7 +728,7 @@ class SensitivityAtSpecificity(SensitivitySpecificityBase):
```python
model.compile(
optimizer='sgd',
loss='mse',
loss='binary_crossentropy',
metrics=[keras.metrics.SensitivityAtSpecificity()])
```
"""
Expand Down Expand Up @@ -832,7 +832,7 @@ class SpecificityAtSensitivity(SensitivitySpecificityBase):
```python
model.compile(
optimizer='sgd',
loss='mse',
loss='binary_crossentropy',
metrics=[keras.metrics.SpecificityAtSensitivity()])
```
"""
Expand Down Expand Up @@ -927,7 +927,7 @@ class PrecisionAtRecall(SensitivitySpecificityBase):
```python
model.compile(
optimizer='sgd',
loss='mse',
loss='binary_crossentropy',
metrics=[keras.metrics.PrecisionAtRecall(recall=0.8)])
```
"""
Expand Down Expand Up @@ -1017,7 +1017,7 @@ class RecallAtPrecision(SensitivitySpecificityBase):
```python
model.compile(
optimizer='sgd',
loss='mse',
loss='binary_crossentropy',
metrics=[keras.metrics.RecallAtPrecision(precision=0.8)])
```
"""
Expand Down

0 comments on commit 9c42023

Please sign in to comment.