Plots
Source code in labicompare/plots/ranking.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
Generates a horizontal boxplot combined with a scatter plot (jitter) focused on difference between two models. The central line (zero) divides visually who wins in the majority of the samples.
Source code in labicompare/plots/differences.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |
Generate a styled heatmap for p-values matrix from a post-hoc test.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pvalue_matrix
|
DataFrame with pair-wise p-values. |
required | |
alpha
|
Significance level (default: 0.05). Values <= alpha will be in bold. |
required | |
min_alpha
|
The exact value where the color changes to green (default: 0.10). |
required | |
figsize
|
tuple[float, float]
|
Size of the figure (width, height). |
(8, 6)
|
fontsize
|
int
|
Size of the font used in this plot. |
12
|
grid_linewidth
|
float
|
Width for the grid line used between cells. |
2.0
|
Returns:
| Type | Description |
|---|---|
Figure
|
Figure instance from matplotlib, can be saved or showed. |
Source code in labicompare/plots/heatmap.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
Generates a scatter plot comparing the results of two specific models dataset per dataset. Diagonal line represents draws (y = x).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
EvaluationData
|
EvaluationData containing all results. |
required |
model_x
|
str
|
Name of the model that will be represented in the X-axis. |
required |
model_y
|
str
|
Name fo the model that will be represented in the Y-axis. |
required |
figsize
|
tuple[float, float]
|
Figure size. |
(6, 6)
|
point_size
|
int
|
Point size used in scatter plot. |
50
|
alpha_points
|
float
|
Point transparency (useful for overlays). |
0.7
|
Returns:
| Type | Description |
|---|---|
Figure
|
Matplotlib figure. |
Source code in labicompare/plots/scatter.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | |