We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa3266 commit 73ec603Copy full SHA for 73ec603
bayesflow/diagnostics/plots/mc_confusion_matrix.py
@@ -7,8 +7,6 @@
7
8
from sklearn.metrics import confusion_matrix
9
10
-from keras import ops
11
-
12
from bayesflow.utils.plot_utils import make_figure
13
14
@@ -75,8 +73,8 @@ def mc_confusion_matrix(
75
73
cmap = LinearSegmentedColormap.from_list("", ["white", "#132a70"])
76
74
77
# Flatten input
78
- true_models = ops.argmax(true_models, axis=1)
79
- pred_models = ops.argmax(pred_models, axis=1)
+ true_models = np.argmax(true_models, axis=1)
+ pred_models = np.argmax(pred_models, axis=1)
80
81
# Compute confusion matrix
82
cm = confusion_matrix(true_models, pred_models, normalize=normalize)
0 commit comments