From 9c42023ded39a806533854e4c94a13916196e604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaan=20B=C4=B1=C3=A7akc=C4=B1?= <46622558+Frightera@users.noreply.github.com> Date: Mon, 15 Jan 2024 18:58:35 +0000 Subject: [PATCH] Update mse -> bce (#19056) --- keras/metrics/confusion_metrics.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/keras/metrics/confusion_metrics.py b/keras/metrics/confusion_metrics.py index 1c6e8a80620..8530dbb7d74 100644 --- a/keras/metrics/confusion_metrics.py +++ b/keras/metrics/confusion_metrics.py @@ -321,7 +321,7 @@ class Precision(Metric): ```python model.compile(optimizer='sgd', - loss='mse', + loss='binary_crossentropy', metrics=[keras.metrics.Precision()]) ``` @@ -465,7 +465,7 @@ class Recall(Metric): ```python model.compile(optimizer='sgd', - loss='mse', + loss='binary_crossentropy', metrics=[keras.metrics.Recall()]) ``` @@ -728,7 +728,7 @@ class SensitivityAtSpecificity(SensitivitySpecificityBase): ```python model.compile( optimizer='sgd', - loss='mse', + loss='binary_crossentropy', metrics=[keras.metrics.SensitivityAtSpecificity()]) ``` """ @@ -832,7 +832,7 @@ class SpecificityAtSensitivity(SensitivitySpecificityBase): ```python model.compile( optimizer='sgd', - loss='mse', + loss='binary_crossentropy', metrics=[keras.metrics.SpecificityAtSensitivity()]) ``` """ @@ -927,7 +927,7 @@ class PrecisionAtRecall(SensitivitySpecificityBase): ```python model.compile( optimizer='sgd', - loss='mse', + loss='binary_crossentropy', metrics=[keras.metrics.PrecisionAtRecall(recall=0.8)]) ``` """ @@ -1017,7 +1017,7 @@ class RecallAtPrecision(SensitivitySpecificityBase): ```python model.compile( optimizer='sgd', - loss='mse', + loss='binary_crossentropy', metrics=[keras.metrics.RecallAtPrecision(precision=0.8)]) ``` """