dragon-ml-toolbox 19.6.0__tar.gz → 19.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dragon_ml_toolbox-19.6.0/dragon_ml_toolbox.egg-info → dragon_ml_toolbox-19.7.0}/PKG-INFO +1 -1
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0/dragon_ml_toolbox.egg-info}/PKG-INFO +1 -1
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_configuration.py +121 -37
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_evaluation.py +177 -63
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_evaluation_multi.py +89 -32
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_sequence_evaluation.py +1 -1
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_vision_evaluation.py +1 -1
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_keys.py +13 -4
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/pyproject.toml +1 -1
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/LICENSE +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/LICENSE-THIRD-PARTY.md +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/README.md +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/dragon_ml_toolbox.egg-info/SOURCES.txt +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/dragon_ml_toolbox.egg-info/dependency_links.txt +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/dragon_ml_toolbox.egg-info/requires.txt +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/dragon_ml_toolbox.egg-info/top_level.txt +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ETL_cleaning.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ETL_engineering.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/GUI_tools.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/IO_tools.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/MICE_imputation.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_callbacks.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_chaining_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_chaining_utilities.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_configuration.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_configuration_pytab.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_datasetmaster.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_evaluation.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_evaluation_captum.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_evaluation_multi.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_finalize_handler.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_models.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_models_advanced.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_models_pytab.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_optimization.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_optimization_pareto.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_scaler.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_sequence_datasetmaster.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_sequence_evaluation.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_sequence_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_sequence_models.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_trainer.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_utilities.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_vision_datasetmaster.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_vision_evaluation.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_vision_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_vision_models.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ML_vision_transformers.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/PSO_optimization.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/SQL.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/VIF_factor.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/__init__.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ETL_cleaning.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ETL_engineering.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_GUI_tools.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_IO_tools.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_MICE_imputation.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_callbacks.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_chaining_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_chaining_utilities.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_configuration_pytab.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_datasetmaster.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_evaluation_captum.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_finalize_handler.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_models.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_models_advanced.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_models_pytab.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_optimization.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_optimization_pareto.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_scaler.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_sequence_datasetmaster.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_sequence_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_sequence_models.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_trainer.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_utilities.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_vision_datasetmaster.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_vision_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_vision_models.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ML_vision_transformers.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_PSO_optimization.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_SQL.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_VIF_factor.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/__init__.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_data_exploration.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ensemble_evaluation.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ensemble_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_ensemble_learning.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_excel_handler.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_logger.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_math_utilities.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_models_advanced_base.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_models_advanced_helpers.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_optimization_tools.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_path_manager.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_plot_fonts.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_schema.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_script_info.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_serde.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/_core/_utilities.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/constants.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/data_exploration.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ensemble_evaluation.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ensemble_inference.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/ensemble_learning.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/excel_handler.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/math_utilities.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/optimization_tools.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/path_manager.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/plot_fonts.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/schema.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/serde.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/ml_tools/utilities.py +0 -0
- {dragon_ml_toolbox-19.6.0 → dragon_ml_toolbox-19.7.0}/setup.cfg +0 -0
|
@@ -65,7 +65,11 @@ class _BaseClassificationFormat:
|
|
|
65
65
|
cmap: str="BuGn",
|
|
66
66
|
ROC_PR_line: str='darkorange',
|
|
67
67
|
calibration_bins: int=15,
|
|
68
|
-
|
|
68
|
+
xtick_size: int=22,
|
|
69
|
+
ytick_size: int=22,
|
|
70
|
+
legend_size: int=26,
|
|
71
|
+
font_size: int=26,
|
|
72
|
+
cm_font_size: int=26) -> None:
|
|
69
73
|
"""
|
|
70
74
|
Initializes the formatting configuration for single-label classification metrics.
|
|
71
75
|
|
|
@@ -84,6 +88,14 @@ class _BaseClassificationFormat:
|
|
|
84
88
|
creating the calibration (reliability) plot.
|
|
85
89
|
|
|
86
90
|
font_size (int): The base font size to apply to the plots.
|
|
91
|
+
|
|
92
|
+
xtick_size (int): Font size for x-axis tick labels.
|
|
93
|
+
|
|
94
|
+
ytick_size (int): Font size for y-axis tick labels.
|
|
95
|
+
|
|
96
|
+
legend_size (int): Font size for plot legends.
|
|
97
|
+
|
|
98
|
+
cm_font_size (int): Font size for the confusion matrix.
|
|
87
99
|
|
|
88
100
|
<br>
|
|
89
101
|
|
|
@@ -97,13 +109,21 @@ class _BaseClassificationFormat:
|
|
|
97
109
|
self.ROC_PR_line = ROC_PR_line
|
|
98
110
|
self.calibration_bins = calibration_bins
|
|
99
111
|
self.font_size = font_size
|
|
112
|
+
self.xtick_size = xtick_size
|
|
113
|
+
self.ytick_size = ytick_size
|
|
114
|
+
self.legend_size = legend_size
|
|
115
|
+
self.cm_font_size = cm_font_size
|
|
100
116
|
|
|
101
117
|
def __repr__(self) -> str:
|
|
102
118
|
parts = [
|
|
103
119
|
f"cmap='{self.cmap}'",
|
|
104
120
|
f"ROC_PR_line='{self.ROC_PR_line}'",
|
|
105
121
|
f"calibration_bins={self.calibration_bins}",
|
|
106
|
-
f"font_size={self.font_size}"
|
|
122
|
+
f"font_size={self.font_size}",
|
|
123
|
+
f"xtick_size={self.xtick_size}",
|
|
124
|
+
f"ytick_size={self.ytick_size}",
|
|
125
|
+
f"legend_size={self.legend_size}",
|
|
126
|
+
f"cm_font_size={self.cm_font_size}"
|
|
107
127
|
]
|
|
108
128
|
return f"{self.__class__.__name__}({', '.join(parts)})"
|
|
109
129
|
|
|
@@ -115,7 +135,10 @@ class _BaseMultiLabelFormat:
|
|
|
115
135
|
def __init__(self,
|
|
116
136
|
cmap: str = "BuGn",
|
|
117
137
|
ROC_PR_line: str='darkorange',
|
|
118
|
-
font_size: int =
|
|
138
|
+
font_size: int = 25,
|
|
139
|
+
xtick_size: int=20,
|
|
140
|
+
ytick_size: int=20,
|
|
141
|
+
legend_size: int=23) -> None:
|
|
119
142
|
"""
|
|
120
143
|
Initializes the formatting configuration for multi-label classification metrics.
|
|
121
144
|
|
|
@@ -132,6 +155,12 @@ class _BaseMultiLabelFormat:
|
|
|
132
155
|
|
|
133
156
|
font_size (int): The base font size to apply to the plots.
|
|
134
157
|
|
|
158
|
+
xtick_size (int): Font size for x-axis tick labels.
|
|
159
|
+
|
|
160
|
+
ytick_size (int): Font size for y-axis tick labels.
|
|
161
|
+
|
|
162
|
+
legend_size (int): Font size for plot legends.
|
|
163
|
+
|
|
135
164
|
<br>
|
|
136
165
|
|
|
137
166
|
### [Matplotlib Colormaps](https://matplotlib.org/stable/users/explain/colors/colormaps.html)
|
|
@@ -143,12 +172,18 @@ class _BaseMultiLabelFormat:
|
|
|
143
172
|
self.cmap = cmap
|
|
144
173
|
self.ROC_PR_line = ROC_PR_line
|
|
145
174
|
self.font_size = font_size
|
|
175
|
+
self.xtick_size = xtick_size
|
|
176
|
+
self.ytick_size = ytick_size
|
|
177
|
+
self.legend_size = legend_size
|
|
146
178
|
|
|
147
179
|
def __repr__(self) -> str:
|
|
148
180
|
parts = [
|
|
149
181
|
f"cmap='{self.cmap}'",
|
|
150
182
|
f"ROC_PR_line='{self.ROC_PR_line}'",
|
|
151
|
-
f"font_size={self.font_size}"
|
|
183
|
+
f"font_size={self.font_size}",
|
|
184
|
+
f"xtick_size={self.xtick_size}",
|
|
185
|
+
f"ytick_size={self.ytick_size}",
|
|
186
|
+
f"legend_size={self.legend_size}"
|
|
152
187
|
]
|
|
153
188
|
return f"{self.__class__.__name__}({', '.join(parts)})"
|
|
154
189
|
|
|
@@ -158,12 +193,14 @@ class _BaseRegressionFormat:
|
|
|
158
193
|
[PRIVATE] Base configuration for regression metrics.
|
|
159
194
|
"""
|
|
160
195
|
def __init__(self,
|
|
161
|
-
font_size: int=
|
|
196
|
+
font_size: int=26,
|
|
162
197
|
scatter_color: str='tab:blue',
|
|
163
198
|
scatter_alpha: float=0.6,
|
|
164
199
|
ideal_line_color: str='k',
|
|
165
200
|
residual_line_color: str='red',
|
|
166
|
-
hist_bins: Union[int, str] = 'auto'
|
|
201
|
+
hist_bins: Union[int, str] = 'auto',
|
|
202
|
+
xtick_size: int=22,
|
|
203
|
+
ytick_size: int=22) -> None:
|
|
167
204
|
"""
|
|
168
205
|
Initializes the formatting configuration for regression metrics.
|
|
169
206
|
|
|
@@ -181,6 +218,8 @@ class _BaseRegressionFormat:
|
|
|
181
218
|
hist_bins (int | str): The number of bins for the residuals histogram.
|
|
182
219
|
Defaults to 'auto' to use seaborn's automatic bin selection.
|
|
183
220
|
- Options: 'auto', 'sqrt', 10, 20
|
|
221
|
+
xtick_size (int): Font size for x-axis tick labels.
|
|
222
|
+
ytick_size (int): Font size for y-axis tick labels.
|
|
184
223
|
|
|
185
224
|
<br>
|
|
186
225
|
|
|
@@ -192,6 +231,8 @@ class _BaseRegressionFormat:
|
|
|
192
231
|
self.ideal_line_color = ideal_line_color
|
|
193
232
|
self.residual_line_color = residual_line_color
|
|
194
233
|
self.hist_bins = hist_bins
|
|
234
|
+
self.xtick_size = xtick_size
|
|
235
|
+
self.ytick_size = ytick_size
|
|
195
236
|
|
|
196
237
|
def __repr__(self) -> str:
|
|
197
238
|
parts = [
|
|
@@ -200,7 +241,9 @@ class _BaseRegressionFormat:
|
|
|
200
241
|
f"scatter_alpha={self.scatter_alpha}",
|
|
201
242
|
f"ideal_line_color='{self.ideal_line_color}'",
|
|
202
243
|
f"residual_line_color='{self.residual_line_color}'",
|
|
203
|
-
f"hist_bins='{self.hist_bins}'"
|
|
244
|
+
f"hist_bins='{self.hist_bins}'",
|
|
245
|
+
f"xtick_size={self.xtick_size}",
|
|
246
|
+
f"ytick_size={self.ytick_size}"
|
|
204
247
|
]
|
|
205
248
|
return f"{self.__class__.__name__}({', '.join(parts)})"
|
|
206
249
|
|
|
@@ -248,7 +291,7 @@ class _BaseSequenceValueFormat:
|
|
|
248
291
|
[PRIVATE] Base configuration for sequence to value metrics.
|
|
249
292
|
"""
|
|
250
293
|
def __init__(self,
|
|
251
|
-
font_size: int=
|
|
294
|
+
font_size: int=25,
|
|
252
295
|
scatter_color: str='tab:blue',
|
|
253
296
|
scatter_alpha: float=0.6,
|
|
254
297
|
ideal_line_color: str='k',
|
|
@@ -300,8 +343,7 @@ class _BaseSequenceSequenceFormat:
|
|
|
300
343
|
[PRIVATE] Base configuration for sequence-to-sequence metrics.
|
|
301
344
|
"""
|
|
302
345
|
def __init__(self,
|
|
303
|
-
font_size: int =
|
|
304
|
-
plot_figsize: tuple[int, int] = (10, 6),
|
|
346
|
+
font_size: int = 25,
|
|
305
347
|
grid_style: str = '--',
|
|
306
348
|
rmse_color: str = 'tab:blue',
|
|
307
349
|
rmse_marker: str = 'o-',
|
|
@@ -312,7 +354,6 @@ class _BaseSequenceSequenceFormat:
|
|
|
312
354
|
|
|
313
355
|
Args:
|
|
314
356
|
font_size (int): The base font size to apply to the plots.
|
|
315
|
-
plot_figsize (Tuple[int, int]): Figure size for the plot.
|
|
316
357
|
grid_style (str): Matplotlib linestyle for the plot grid.
|
|
317
358
|
- Options: '--' (dashed), ':' (dotted), '-.' (dash-dot), '-' (solid)
|
|
318
359
|
rmse_color (str): Matplotlib color for the RMSE line.
|
|
@@ -337,7 +378,6 @@ class _BaseSequenceSequenceFormat:
|
|
|
337
378
|
### [Matplotlib Markers](https://matplotlib.org/stable/api/markers_api.html)
|
|
338
379
|
"""
|
|
339
380
|
self.font_size = font_size
|
|
340
|
-
self.plot_figsize = plot_figsize
|
|
341
381
|
self.grid_style = grid_style
|
|
342
382
|
self.rmse_color = rmse_color
|
|
343
383
|
self.rmse_marker = rmse_marker
|
|
@@ -347,7 +387,6 @@ class _BaseSequenceSequenceFormat:
|
|
|
347
387
|
def __repr__(self) -> str:
|
|
348
388
|
parts = [
|
|
349
389
|
f"font_size={self.font_size}",
|
|
350
|
-
f"plot_figsize={self.plot_figsize}",
|
|
351
390
|
f"grid_style='{self.grid_style}'",
|
|
352
391
|
f"rmse_color='{self.rmse_color}'",
|
|
353
392
|
f"mae_color='{self.mae_color}'"
|
|
@@ -639,18 +678,22 @@ class RegressionMetricsFormat(_BaseRegressionFormat):
|
|
|
639
678
|
Configuration for single-target regression.
|
|
640
679
|
"""
|
|
641
680
|
def __init__(self,
|
|
642
|
-
font_size: int=
|
|
681
|
+
font_size: int=26,
|
|
643
682
|
scatter_color: str='tab:blue',
|
|
644
683
|
scatter_alpha: float=0.6,
|
|
645
684
|
ideal_line_color: str='k',
|
|
646
685
|
residual_line_color: str='red',
|
|
647
|
-
hist_bins: Union[int, str] = 'auto'
|
|
686
|
+
hist_bins: Union[int, str] = 'auto',
|
|
687
|
+
xtick_size: int=22,
|
|
688
|
+
ytick_size: int=22) -> None:
|
|
648
689
|
super().__init__(font_size=font_size,
|
|
649
690
|
scatter_color=scatter_color,
|
|
650
691
|
scatter_alpha=scatter_alpha,
|
|
651
692
|
ideal_line_color=ideal_line_color,
|
|
652
693
|
residual_line_color=residual_line_color,
|
|
653
|
-
hist_bins=hist_bins
|
|
694
|
+
hist_bins=hist_bins,
|
|
695
|
+
xtick_size=xtick_size,
|
|
696
|
+
ytick_size=ytick_size)
|
|
654
697
|
|
|
655
698
|
|
|
656
699
|
# Multitarget regression
|
|
@@ -659,18 +702,22 @@ class MultiTargetRegressionMetricsFormat(_BaseRegressionFormat):
|
|
|
659
702
|
Configuration for multi-target regression.
|
|
660
703
|
"""
|
|
661
704
|
def __init__(self,
|
|
662
|
-
font_size: int=
|
|
705
|
+
font_size: int=26,
|
|
663
706
|
scatter_color: str='tab:blue',
|
|
664
707
|
scatter_alpha: float=0.6,
|
|
665
708
|
ideal_line_color: str='k',
|
|
666
709
|
residual_line_color: str='red',
|
|
667
|
-
hist_bins: Union[int, str] = 'auto'
|
|
710
|
+
hist_bins: Union[int, str] = 'auto',
|
|
711
|
+
xtick_size: int=22,
|
|
712
|
+
ytick_size: int=22) -> None:
|
|
668
713
|
super().__init__(font_size=font_size,
|
|
669
714
|
scatter_color=scatter_color,
|
|
670
715
|
scatter_alpha=scatter_alpha,
|
|
671
716
|
ideal_line_color=ideal_line_color,
|
|
672
717
|
residual_line_color=residual_line_color,
|
|
673
|
-
hist_bins=hist_bins
|
|
718
|
+
hist_bins=hist_bins,
|
|
719
|
+
xtick_size=xtick_size,
|
|
720
|
+
ytick_size=ytick_size)
|
|
674
721
|
|
|
675
722
|
|
|
676
723
|
# Classification
|
|
@@ -682,11 +729,20 @@ class BinaryClassificationMetricsFormat(_BaseClassificationFormat):
|
|
|
682
729
|
cmap: str="BuGn",
|
|
683
730
|
ROC_PR_line: str='darkorange',
|
|
684
731
|
calibration_bins: int=15,
|
|
685
|
-
font_size: int=
|
|
732
|
+
font_size: int=26,
|
|
733
|
+
xtick_size: int=22,
|
|
734
|
+
ytick_size: int=22,
|
|
735
|
+
legend_size: int=26,
|
|
736
|
+
cm_font_size: int=26
|
|
737
|
+
) -> None:
|
|
686
738
|
super().__init__(cmap=cmap,
|
|
687
739
|
ROC_PR_line=ROC_PR_line,
|
|
688
740
|
calibration_bins=calibration_bins,
|
|
689
|
-
font_size=font_size
|
|
741
|
+
font_size=font_size,
|
|
742
|
+
xtick_size=xtick_size,
|
|
743
|
+
ytick_size=ytick_size,
|
|
744
|
+
legend_size=legend_size,
|
|
745
|
+
cm_font_size=cm_font_size)
|
|
690
746
|
|
|
691
747
|
|
|
692
748
|
class MultiClassClassificationMetricsFormat(_BaseClassificationFormat):
|
|
@@ -697,12 +753,20 @@ class MultiClassClassificationMetricsFormat(_BaseClassificationFormat):
|
|
|
697
753
|
cmap: str="BuGn",
|
|
698
754
|
ROC_PR_line: str='darkorange',
|
|
699
755
|
calibration_bins: int=15,
|
|
700
|
-
font_size: int=
|
|
756
|
+
font_size: int=26,
|
|
757
|
+
xtick_size: int=22,
|
|
758
|
+
ytick_size: int=22,
|
|
759
|
+
legend_size: int=26,
|
|
760
|
+
cm_font_size: int=26
|
|
761
|
+
) -> None:
|
|
701
762
|
super().__init__(cmap=cmap,
|
|
702
763
|
ROC_PR_line=ROC_PR_line,
|
|
703
764
|
calibration_bins=calibration_bins,
|
|
704
|
-
font_size=font_size
|
|
705
|
-
|
|
765
|
+
font_size=font_size,
|
|
766
|
+
xtick_size=xtick_size,
|
|
767
|
+
ytick_size=ytick_size,
|
|
768
|
+
legend_size=legend_size,
|
|
769
|
+
cm_font_size=cm_font_size)
|
|
706
770
|
|
|
707
771
|
class BinaryImageClassificationMetricsFormat(_BaseClassificationFormat):
|
|
708
772
|
"""
|
|
@@ -712,12 +776,20 @@ class BinaryImageClassificationMetricsFormat(_BaseClassificationFormat):
|
|
|
712
776
|
cmap: str="BuGn",
|
|
713
777
|
ROC_PR_line: str='darkorange',
|
|
714
778
|
calibration_bins: int=15,
|
|
715
|
-
font_size: int=
|
|
779
|
+
font_size: int=26,
|
|
780
|
+
xtick_size: int=22,
|
|
781
|
+
ytick_size: int=22,
|
|
782
|
+
legend_size: int=26,
|
|
783
|
+
cm_font_size: int=26
|
|
784
|
+
) -> None:
|
|
716
785
|
super().__init__(cmap=cmap,
|
|
717
786
|
ROC_PR_line=ROC_PR_line,
|
|
718
787
|
calibration_bins=calibration_bins,
|
|
719
|
-
font_size=font_size
|
|
720
|
-
|
|
788
|
+
font_size=font_size,
|
|
789
|
+
xtick_size=xtick_size,
|
|
790
|
+
ytick_size=ytick_size,
|
|
791
|
+
legend_size=legend_size,
|
|
792
|
+
cm_font_size=cm_font_size)
|
|
721
793
|
|
|
722
794
|
class MultiClassImageClassificationMetricsFormat(_BaseClassificationFormat):
|
|
723
795
|
"""
|
|
@@ -727,12 +799,20 @@ class MultiClassImageClassificationMetricsFormat(_BaseClassificationFormat):
|
|
|
727
799
|
cmap: str="BuGn",
|
|
728
800
|
ROC_PR_line: str='darkorange',
|
|
729
801
|
calibration_bins: int=15,
|
|
730
|
-
font_size: int=
|
|
802
|
+
font_size: int=26,
|
|
803
|
+
xtick_size: int=22,
|
|
804
|
+
ytick_size: int=22,
|
|
805
|
+
legend_size: int=26,
|
|
806
|
+
cm_font_size: int=26
|
|
807
|
+
) -> None:
|
|
731
808
|
super().__init__(cmap=cmap,
|
|
732
809
|
ROC_PR_line=ROC_PR_line,
|
|
733
810
|
calibration_bins=calibration_bins,
|
|
734
|
-
font_size=font_size
|
|
735
|
-
|
|
811
|
+
font_size=font_size,
|
|
812
|
+
xtick_size=xtick_size,
|
|
813
|
+
ytick_size=ytick_size,
|
|
814
|
+
legend_size=legend_size,
|
|
815
|
+
cm_font_size=cm_font_size)
|
|
736
816
|
|
|
737
817
|
# Multi-Label classification
|
|
738
818
|
class MultiLabelBinaryClassificationMetricsFormat(_BaseMultiLabelFormat):
|
|
@@ -742,11 +822,17 @@ class MultiLabelBinaryClassificationMetricsFormat(_BaseMultiLabelFormat):
|
|
|
742
822
|
def __init__(self,
|
|
743
823
|
cmap: str = "BuGn",
|
|
744
824
|
ROC_PR_line: str='darkorange',
|
|
745
|
-
font_size: int =
|
|
825
|
+
font_size: int = 25,
|
|
826
|
+
xtick_size: int=20,
|
|
827
|
+
ytick_size: int=20,
|
|
828
|
+
legend_size: int=23
|
|
829
|
+
) -> None:
|
|
746
830
|
super().__init__(cmap=cmap,
|
|
747
831
|
ROC_PR_line=ROC_PR_line,
|
|
748
|
-
font_size=font_size
|
|
749
|
-
|
|
832
|
+
font_size=font_size,
|
|
833
|
+
xtick_size=xtick_size,
|
|
834
|
+
ytick_size=ytick_size,
|
|
835
|
+
legend_size=legend_size)
|
|
750
836
|
|
|
751
837
|
# Segmentation
|
|
752
838
|
class BinarySegmentationMetricsFormat(_BaseSegmentationFormat):
|
|
@@ -781,7 +867,7 @@ class SequenceValueMetricsFormat(_BaseSequenceValueFormat):
|
|
|
781
867
|
Configuration for sequence-to-value prediction.
|
|
782
868
|
"""
|
|
783
869
|
def __init__(self,
|
|
784
|
-
font_size: int=
|
|
870
|
+
font_size: int=25,
|
|
785
871
|
scatter_color: str='tab:blue',
|
|
786
872
|
scatter_alpha: float=0.6,
|
|
787
873
|
ideal_line_color: str='k',
|
|
@@ -800,15 +886,13 @@ class SequenceSequenceMetricsFormat(_BaseSequenceSequenceFormat):
|
|
|
800
886
|
Configuration for sequence-to-sequence prediction.
|
|
801
887
|
"""
|
|
802
888
|
def __init__(self,
|
|
803
|
-
font_size: int =
|
|
804
|
-
plot_figsize: tuple[int, int] = (10, 6),
|
|
889
|
+
font_size: int = 25,
|
|
805
890
|
grid_style: str = '--',
|
|
806
891
|
rmse_color: str = 'tab:blue',
|
|
807
892
|
rmse_marker: str = 'o-',
|
|
808
893
|
mae_color: str = 'tab:orange',
|
|
809
894
|
mae_marker: str = 's--'):
|
|
810
895
|
super().__init__(font_size=font_size,
|
|
811
|
-
plot_figsize=plot_figsize,
|
|
812
896
|
grid_style=grid_style,
|
|
813
897
|
rmse_color=rmse_color,
|
|
814
898
|
rmse_marker=rmse_marker,
|