Skip to content

Commit 720346b

Browse files
committed
[ENH] made the default win tie loss label row and col instead of r and c
1 parent 621054f commit 720346b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

MCM/MCM.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def get_heatmap(analysis=None,
250250

251251
string_to_add = ''
252252
string_to_add = string_to_add + capitalize_label(analysis['used-mean']) + '\n'
253-
string_to_add = string_to_add + win_label+'/'+tie_label+'/'+loss_label+' ' + '\n'
253+
string_to_add = string_to_add + win_label+' / '+tie_label+' / '+loss_label+' ' + '\n'
254254
if analysis['include-pvalue']:
255255
string_to_add = string_to_add + analysis['pvalue-test'].capitalize() + ' p-value'
256256

@@ -820,7 +820,7 @@ def _get_line_heatmap(proposed_method,
820820

821821
string_to_add = ''
822822
string_to_add = string_to_add + capitalize_label(analysis['used-mean']) + '\n'
823-
string_to_add = string_to_add + win_label+'/'+tie_label+'/'+loss_label+' ' + '\n'
823+
string_to_add = string_to_add + win_label+' / '+tie_label+' / '+loss_label+' ' + '\n'
824824
if analysis['include-pvalue']:
825825
string_to_add = string_to_add + analysis['pvalue-test'].capitalize() + ' p-value'
826826

main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717

1818
MCM.get_heatmap(output_dir=output_dir,
1919
colormap='coolwarm',
20-
show_symetry=True)
20+
show_symetry=True,
21+
win_label='row>col',
22+
tie_label='row=col',
23+
loss_label='row<col')
2124

2225
MCM.get_line_heatmap(proposed_methods=['clf1','clf2'],
2326
output_dir=output_dir)

0 commit comments

Comments
 (0)