mljar-supervised 1.2.1__tar.gz → 1.2.2__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.
- {mljar_supervised-1.2.1/mljar_supervised.egg-info → mljar_supervised-1.2.2}/PKG-INFO +5 -5
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/README.md +4 -4
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2/mljar_supervised.egg-info}/PKG-INFO +5 -5
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/setup.py +1 -1
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/__init__.py +1 -1
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/automl.py +2 -2
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/base_automl.py +10 -4
- mljar_supervised-1.2.2/supervised/utils/report_structured.py +677 -0
- mljar_supervised-1.2.1/supervised/utils/report_structured.py +0 -525
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/LICENSE +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/MANIFEST.in +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/mljar_supervised.egg-info/SOURCES.txt +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/mljar_supervised.egg-info/dependency_links.txt +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/mljar_supervised.egg-info/requires.txt +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/mljar_supervised.egg-info/top_level.txt +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/requirements.txt +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/requirements_dev.txt +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/setup.cfg +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/__init__.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/algorithm.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/baseline.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/catboost.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/decision_tree.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/extra_trees.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/factory.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/knn.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/lightgbm.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/linear.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/nn.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/random_forest.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/registry.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/sklearn.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/algorithms/xgboost.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/callbacks/__init__.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/callbacks/callback.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/callbacks/callback_list.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/callbacks/early_stopping.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/callbacks/learner_time_constraint.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/callbacks/max_iters_constraint.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/callbacks/metric_logger.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/callbacks/terminate_on_nan.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/callbacks/total_time_constraint.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/ensemble.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/exceptions.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/fairness/__init__.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/fairness/metrics.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/fairness/optimization.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/fairness/plots.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/fairness/report.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/fairness/utils.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/model_framework.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/__init__.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/datetime_transformer.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/encoding_selector.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/exclude_missing_target.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/goldenfeatures_transformer.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/kmeans_transformer.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/label_binarizer.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/label_encoder.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/preprocessing.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/preprocessing_categorical.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/preprocessing_missing.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/preprocessing_utils.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/scale.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/preprocessing/text_transformer.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/__init__.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/data_info.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/hill_climbing.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/mljar_tuner.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/optuna/__init__.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/optuna/catboost.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/optuna/extra_trees.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/optuna/knn.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/optuna/lightgbm.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/optuna/nn.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/optuna/random_forest.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/optuna/tuner.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/optuna/xgboost.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/preprocessing_tuner.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/random_parameters.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/tuner/time_controller.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/__init__.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/additional_metrics.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/additional_plots.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/automl_plots.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/common.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/config.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/constants.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/data_validation.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/importance.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/jsonencoder.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/leaderboard_plots.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/learning_curves.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/metric.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/shap.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/subsample.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/utils/utils.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/validation/__init__.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/validation/validation_step.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/validation/validator_base.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/validation/validator_custom.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/validation/validator_kfold.py +0 -0
- {mljar_supervised-1.2.1 → mljar_supervised-1.2.2}/supervised/validation/validator_split.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mljar-supervised
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Automated Machine Learning for Humans
|
|
5
5
|
Home-page: https://github.com/mljar/mljar-supervised
|
|
6
6
|
Author: MLJAR, Sp. z o.o.
|
|
@@ -541,14 +541,14 @@ Each call creates/updates:
|
|
|
541
541
|
<results_path>/report_structured.json
|
|
542
542
|
```
|
|
543
543
|
|
|
544
|
-
Use
|
|
544
|
+
Use `model_name` to display detailed metrics for one selected model:
|
|
545
545
|
|
|
546
546
|
```python
|
|
547
|
-
compact = automl.report_structured(
|
|
548
|
-
detailed = automl.report_structured(
|
|
547
|
+
compact = automl.report_structured()
|
|
548
|
+
detailed = automl.report_structured(model_name="3_Linear")
|
|
549
549
|
```
|
|
550
550
|
|
|
551
|
-
|
|
551
|
+
When `model_name` is provided, the markdown includes detailed metrics, fairness details (if used), and feature importance summaries for that model.
|
|
552
552
|
|
|
553
553
|
# Installation
|
|
554
554
|
|
|
@@ -493,14 +493,14 @@ Each call creates/updates:
|
|
|
493
493
|
<results_path>/report_structured.json
|
|
494
494
|
```
|
|
495
495
|
|
|
496
|
-
Use
|
|
496
|
+
Use `model_name` to display detailed metrics for one selected model:
|
|
497
497
|
|
|
498
498
|
```python
|
|
499
|
-
compact = automl.report_structured(
|
|
500
|
-
detailed = automl.report_structured(
|
|
499
|
+
compact = automl.report_structured()
|
|
500
|
+
detailed = automl.report_structured(model_name="3_Linear")
|
|
501
501
|
```
|
|
502
502
|
|
|
503
|
-
|
|
503
|
+
When `model_name` is provided, the markdown includes detailed metrics, fairness details (if used), and feature importance summaries for that model.
|
|
504
504
|
|
|
505
505
|
# Installation
|
|
506
506
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mljar-supervised
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Automated Machine Learning for Humans
|
|
5
5
|
Home-page: https://github.com/mljar/mljar-supervised
|
|
6
6
|
Author: MLJAR, Sp. z o.o.
|
|
@@ -541,14 +541,14 @@ Each call creates/updates:
|
|
|
541
541
|
<results_path>/report_structured.json
|
|
542
542
|
```
|
|
543
543
|
|
|
544
|
-
Use
|
|
544
|
+
Use `model_name` to display detailed metrics for one selected model:
|
|
545
545
|
|
|
546
546
|
```python
|
|
547
|
-
compact = automl.report_structured(
|
|
548
|
-
detailed = automl.report_structured(
|
|
547
|
+
compact = automl.report_structured()
|
|
548
|
+
detailed = automl.report_structured(model_name="3_Linear")
|
|
549
549
|
```
|
|
550
550
|
|
|
551
|
-
|
|
551
|
+
When `model_name` is provided, the markdown includes detailed metrics, fairness details (if used), and feature importance summaries for that model.
|
|
552
552
|
|
|
553
553
|
# Installation
|
|
554
554
|
|
|
@@ -10,7 +10,7 @@ with open(path.join(here, "README.md"), encoding="utf-8") as f:
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name="mljar-supervised",
|
|
13
|
-
version="1.2.
|
|
13
|
+
version="1.2.2",
|
|
14
14
|
description="Automated Machine Learning for Humans",
|
|
15
15
|
long_description=long_description,
|
|
16
16
|
long_description_content_type="text/markdown",
|
|
@@ -535,8 +535,8 @@ class AutoML(BaseAutoML):
|
|
|
535
535
|
def report(self, width=900, height=1200):
|
|
536
536
|
return self._report(width, height)
|
|
537
537
|
|
|
538
|
-
def report_structured(self, format="markdown",
|
|
539
|
-
return self._report_structured(format,
|
|
538
|
+
def report_structured(self, format="markdown", model_name=None):
|
|
539
|
+
return self._report_structured(format, model_name)
|
|
540
540
|
|
|
541
541
|
def need_retrain(
|
|
542
542
|
self,
|
|
@@ -47,6 +47,7 @@ from supervised.utils.jsonencoder import MLJSONEncoder
|
|
|
47
47
|
from supervised.utils.leaderboard_plots import LeaderboardPlots
|
|
48
48
|
from supervised.utils.metric import Metric, UserDefinedEvalMetric
|
|
49
49
|
from supervised.utils.report_structured import (
|
|
50
|
+
build_compact_view,
|
|
50
51
|
build_structured_report,
|
|
51
52
|
save_structured_report,
|
|
52
53
|
to_markdown,
|
|
@@ -2480,7 +2481,7 @@ margin-right: auto;display: block;"/>\n\n"""
|
|
|
2480
2481
|
|
|
2481
2482
|
return self._show_report(main_readme_html, width, height)
|
|
2482
2483
|
|
|
2483
|
-
def _report_structured(self, format="markdown",
|
|
2484
|
+
def _report_structured(self, format="markdown", model_name=None):
|
|
2484
2485
|
self._results_path = self._get_results_path()
|
|
2485
2486
|
if self._fit_level != "finished":
|
|
2486
2487
|
self.load(self._results_path)
|
|
@@ -2502,11 +2503,16 @@ margin-right: auto;display: block;"/>\n\n"""
|
|
|
2502
2503
|
payload = build_structured_report(self)
|
|
2503
2504
|
save_structured_report(payload, self._results_path)
|
|
2504
2505
|
|
|
2506
|
+
try:
|
|
2507
|
+
output_payload = build_compact_view(payload, model_name)
|
|
2508
|
+
except ValueError as e:
|
|
2509
|
+
raise AutoMLException(str(e))
|
|
2510
|
+
|
|
2505
2511
|
if format == "dict":
|
|
2506
|
-
return
|
|
2512
|
+
return output_payload
|
|
2507
2513
|
if format == "json":
|
|
2508
|
-
return json.dumps(
|
|
2509
|
-
return to_markdown(
|
|
2514
|
+
return json.dumps(output_payload, indent=4)
|
|
2515
|
+
return to_markdown(output_payload, model_name)
|
|
2510
2516
|
|
|
2511
2517
|
def _need_retrain(self, X, y, sample_weight, decrease):
|
|
2512
2518
|
metric = self._best_model.get_metric()
|