Skip to content

Commit 09343f1

Browse files
committed
Debugging bugs
1 parent aab4402 commit 09343f1

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

aeon/visualisation/results/_mcm.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import json
88
import os
9-
from typing import Dict, Optional
109
import numpy as np
1110
import pandas as pd
1211
from scipy.stats import wilcoxon
@@ -16,11 +15,11 @@
1615
def create_multi_comparison_matrix(
1716
df_results,
1817
output_dir="./",
19-
save_files: Optional[Dict[str, str]] = None, # Changed to dictionary
18+
save_files = None, # Changed to dictionary
2019
used_statistic="Accuracy",
2120
save_as_json=False,
2221
plot_1v1_comparisons=False,
23-
order_settings: Dict[str, str] = {"win_tie_loss": "higher", "better": "decreasing"}, # Combined order settings
22+
order_settings = {"win_tie_loss": "higher", "better": "decreasing"}, # Combined order settings
2423
include_pvalue=True,
2524
pvalue_test="wilcoxon",
2625
pvalue_test_params=None,
@@ -447,7 +446,7 @@ def _plot_1v1(
447446
def _draw(
448447
analysis,
449448
output_dir="./",
450-
save_files: Optional[Dict[str, str]] = None, # Changed to dictionary
449+
save_files = None, # Changed to dictionary
451450
row_comparates=None,
452451
col_comparates=None,
453452
excluded_row_comparates=None,

examples/visualisation/plotting_results.ipynb

+2-3
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@
549549
},
550550
{
551551
"cell_type": "code",
552-
"execution_count": 17,
552+
"execution_count": null,
553553
"id": "a9919cda13fadd3",
554554
"metadata": {
555555
"ExecuteTime": {
@@ -587,8 +587,7 @@
587587
" df_results=df2,\n",
588588
" excluded_col_comparates=[\"Classifier 1\"],\n",
589589
" used_statistic=\"error\",\n",
590-
" order_better=\"increasing\",\n",
591-
" order_win_tie_loss=\"lower\",\n",
590+
" order_settings = {\"win_tie_loss\": \"higher\", \"better\": \"decreasing\"},\n",
592591
" fig_size=\"8,3\",\n",
593592
" win_label=\"r<c\",\n",
594593
" loss_label=\"r>c\",\n",

0 commit comments

Comments
 (0)