Skip to content

Commit b9f9ac6

Browse files
Update README.md
1 parent a774e96 commit b9f9ac6

File tree

1 file changed

+52
-2
lines changed

1 file changed

+52
-2
lines changed

README.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Multi Comparison Matrix (MCM)
1+
# Multi-Comparison Matrix (MCM)
22

33
### A Long Term Approach to Benchmark Evaluations
44

@@ -27,20 +27,70 @@ In order for the user to plot the MCM, first thing is to load the ```.csv``` fil
2727

2828
## Examples
2929

30-
Generating the MCM on the [following example](https://github.com/MSD-IRIMAS/Multi_Pairwise_Comparison/blob/main/results_example.csv) produces the following.
30+
Generating the MCM on the [following example](https://github.com/MSD-IRIMAS/Multi_Pairwise_Comparison/blob/main/results_example.csv) produces the following. To generate the following figure, the user follows this simple code:
31+
32+
```
33+
import pandas as pd
34+
from MCM import MCM
35+
36+
df_results = pd.read_csv('path/to/csv')
37+
38+
output_dir = '/output/directory/desired'
39+
40+
MCM.compare(
41+
output_dir=output_dir,
42+
df_results=df_results,
43+
fig_savename='heatmap',
44+
load_analysis=False
45+
)
46+
```
3147

3248
<p align="center" width="100%">
3349
<img src="heatmap.png" alt="heatmap-example"/>
3450
</p>
3551

3652
Generating the MCM on the [following example](https://github.com/MSD-IRIMAS/Multi_Pairwise_Comparison/blob/main/results_example.csv) by excluding ```clf1``` and ```clf3``` from the columns.
3753

54+
```
55+
import pandas as pd
56+
from MCM import MCM
57+
58+
df_results = pd.read_csv('path/to/csv')
59+
60+
output_dir = '/output/directory/desired'
61+
62+
MCM.compare(
63+
output_dir=output_dir,
64+
df_results=df_results,
65+
excluded_col_comparates=['clf1','clf3'],
66+
fig_savename='heatline_vertical',
67+
load_analysis=False
68+
)
69+
```
70+
3871
<p align="center" width="100%">
3972
<img src="heatline_vertical.png" alt="heatline-vertical-example"/>
4073
</p>
4174

4275
and by excluding them in the rows.
4376

77+
```
78+
import pandas as pd
79+
from MCM import MCM
80+
81+
df_results = pd.read_csv('path/to/csv')
82+
83+
output_dir = '/output/directory/desired'
84+
85+
MCM.compare(
86+
output_dir=output_dir,
87+
df_results=df_results,
88+
excluded_row_comparates=['clf1','clf3'],
89+
fig_savename='heatline_vertical',
90+
load_analysis=False
91+
)
92+
```
93+
4494
<p align="center" width="100%">
4595
<img src="heatline_horizontal.png" alt="heatline-horizontal-example"/>
4696
</p>

0 commit comments

Comments
 (0)