Skip to content

Commit 1c520db

Browse files
plot_confusion_matrix: argument list re-ordered
1 parent 97c82f6 commit 1c520db

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotPython"
10-
version = "0.6.19"
10+
version = "0.6.20"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/plot/validation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def plot_roc_from_dataframes(
157157

158158

159159
def plot_confusion_matrix(
160-
model=None, df=None, target_names=None, fun_control=None, title=None, y_true_name=None, y_pred_name=None
160+
model=None, fun_control=None, df=None, title=None, target_names=None, y_true_name=None, y_pred_name=None
161161
):
162162
"""
163163
Plotting a confusion matrix. If a model and the fun_control dictionary are passed,
@@ -168,14 +168,14 @@ def plot_confusion_matrix(
168168
Args:
169169
model (Any, optional):
170170
Sklearn model. The model to be used for cross-validation. Defaults to None.
171-
df (pd.DataFrame, optional):
172-
Dataframe containing the predictions and the target column. Defaults to None.
173171
fun_control (Dict, optional):
174172
Dictionary containing the data and the target column. Defaults to None.
175-
target_names (List[str], optional):
176-
List of target names. Defaults to None.
177173
title (str, optional):
178174
Title of the plot. Defaults to None.
175+
df (pd.DataFrame, optional):
176+
Dataframe containing the predictions and the target column. Defaults to None.
177+
target_names (List[str], optional):
178+
List of target names. Defaults to None.
179179
y_true_name (str, optional):
180180
Name of the column with the true values if a dataframe is specified. Defaults to None.
181181
y_pred_name (str, optional):

0 commit comments

Comments
 (0)