@@ -157,7 +157,7 @@ def plot_roc_from_dataframes(
157157
158158
159159def 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