mljar-supervised 1.2.2__tar.gz → 1.4.0a1__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.2 → mljar_supervised-1.4.0a1}/PKG-INFO +113 -8
- mljar_supervised-1.2.2/mljar_supervised.egg-info/PKG-INFO → mljar_supervised-1.4.0a1/README.md +80 -54
- mljar_supervised-1.2.2/README.md → mljar_supervised-1.4.0a1/mljar_supervised.egg-info/PKG-INFO +159 -6
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/mljar_supervised.egg-info/SOURCES.txt +27 -0
- mljar_supervised-1.4.0a1/mljar_supervised.egg-info/requires.txt +63 -0
- mljar_supervised-1.4.0a1/requirements.txt +22 -0
- mljar_supervised-1.4.0a1/requirements_dev.txt +10 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/setup.py +11 -1
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/__init__.py +1 -1
- mljar_supervised-1.4.0a1/supervised/algorithms/_pytabkit_compat.py +128 -0
- mljar_supervised-1.4.0a1/supervised/algorithms/_realmlp_backend.py +84 -0
- mljar_supervised-1.4.0a1/supervised/algorithms/_sdm_backend.py +263 -0
- mljar_supervised-1.4.0a1/supervised/algorithms/_tabm_backend.py +225 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/algorithm.py +30 -8
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/catboost.py +15 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/decision_tree.py +6 -1
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/extra_trees.py +2 -0
- mljar_supervised-1.4.0a1/supervised/algorithms/knn.py +277 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/lightgbm.py +17 -5
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/linear.py +2 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/nn.py +22 -1
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/random_forest.py +2 -0
- mljar_supervised-1.4.0a1/supervised/algorithms/realmlp.py +595 -0
- mljar_supervised-1.4.0a1/supervised/algorithms/realmlp_resources.py +172 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/registry.py +10 -1
- mljar_supervised-1.4.0a1/supervised/algorithms/sdm.py +740 -0
- mljar_supervised-1.4.0a1/supervised/algorithms/tabm.py +347 -0
- mljar_supervised-1.4.0a1/supervised/algorithms/tabm_resources.py +102 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/xgboost.py +12 -5
- mljar_supervised-1.4.0a1/supervised/apps/__init__.py +5 -0
- mljar_supervised-1.4.0a1/supervised/apps/generator.py +231 -0
- mljar_supervised-1.4.0a1/supervised/apps/local_runner.py +120 -0
- mljar_supervised-1.4.0a1/supervised/apps/metadata.py +380 -0
- mljar_supervised-1.4.0a1/supervised/apps/publisher.py +497 -0
- mljar_supervised-1.4.0a1/supervised/apps/templates.py +633 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/automl.py +134 -10
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/base_automl.py +652 -99
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/callbacks/early_stopping.py +11 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/callbacks/total_time_constraint.py +3 -3
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/ensemble.py +45 -21
- mljar_supervised-1.4.0a1/supervised/exceptions.py +40 -0
- mljar_supervised-1.4.0a1/supervised/fairness/certificate.py +129 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/fairness/report.py +55 -2
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/model_framework.py +135 -26
- mljar_supervised-1.4.0a1/supervised/prediction.py +125 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/encoding_selector.py +4 -3
- mljar_supervised-1.4.0a1/supervised/preprocessing/feature_discovery_transformer.py +311 -0
- mljar_supervised-1.4.0a1/supervised/preprocessing/ip_transformer.py +94 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/kmeans_transformer.py +27 -8
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/label_binarizer.py +11 -10
- mljar_supervised-1.4.0a1/supervised/preprocessing/label_encoder.py +129 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/preprocessing.py +107 -1
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/preprocessing_categorical.py +23 -17
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/preprocessing_missing.py +10 -2
- mljar_supervised-1.4.0a1/supervised/preprocessing/preprocessing_utils.py +201 -0
- mljar_supervised-1.4.0a1/supervised/tuner/algorithm_early_stopping.py +171 -0
- mljar_supervised-1.4.0a1/supervised/tuner/custom_parameters.py +62 -0
- mljar_supervised-1.4.0a1/supervised/tuner/data_info.py +83 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/mljar_tuner.py +272 -49
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/optuna/lightgbm.py +7 -2
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/optuna/nn.py +2 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/optuna/tuner.py +3 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/optuna/xgboost.py +8 -2
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/preprocessing_tuner.py +10 -0
- mljar_supervised-1.4.0a1/supervised/tuner/stacking.py +20 -0
- mljar_supervised-1.4.0a1/supervised/tuner/stacking_cost.py +72 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/time_controller.py +97 -11
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/additional_metrics.py +40 -3
- mljar_supervised-1.4.0a1/supervised/utils/artifact_paths.py +14 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/automl_plots.py +8 -47
- mljar_supervised-1.4.0a1/supervised/utils/blueprint.py +494 -0
- mljar_supervised-1.4.0a1/supervised/utils/column_scan.py +58 -0
- mljar_supervised-1.4.0a1/supervised/utils/feature_importance.py +266 -0
- mljar_supervised-1.4.0a1/supervised/utils/importance.py +150 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/leaderboard_plots.py +31 -15
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/metric.py +39 -19
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/report_structured.py +93 -52
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/shap.py +11 -1
- mljar_supervised-1.4.0a1/supervised/utils/utils.py +94 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/validation/validation_step.py +5 -4
- mljar_supervised-1.4.0a1/supervised/validation/validator_base.py +36 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/validation/validator_custom.py +5 -29
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/validation/validator_kfold.py +13 -31
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/validation/validator_split.py +24 -56
- mljar_supervised-1.2.2/mljar_supervised.egg-info/requires.txt +0 -18
- mljar_supervised-1.2.2/requirements.txt +0 -18
- mljar_supervised-1.2.2/requirements_dev.txt +0 -4
- mljar_supervised-1.2.2/supervised/algorithms/knn.py +0 -137
- mljar_supervised-1.2.2/supervised/exceptions.py +0 -21
- mljar_supervised-1.2.2/supervised/preprocessing/label_encoder.py +0 -54
- mljar_supervised-1.2.2/supervised/preprocessing/preprocessing_utils.py +0 -136
- mljar_supervised-1.2.2/supervised/tuner/data_info.py +0 -64
- mljar_supervised-1.2.2/supervised/utils/importance.py +0 -93
- mljar_supervised-1.2.2/supervised/utils/utils.py +0 -29
- mljar_supervised-1.2.2/supervised/validation/validator_base.py +0 -17
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/LICENSE +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/MANIFEST.in +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/mljar_supervised.egg-info/dependency_links.txt +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/mljar_supervised.egg-info/top_level.txt +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/setup.cfg +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/baseline.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/factory.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/algorithms/sklearn.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/callbacks/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/callbacks/callback.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/callbacks/callback_list.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/callbacks/learner_time_constraint.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/callbacks/max_iters_constraint.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/callbacks/metric_logger.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/callbacks/terminate_on_nan.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/fairness/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/fairness/metrics.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/fairness/optimization.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/fairness/plots.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/fairness/utils.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/datetime_transformer.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/exclude_missing_target.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/goldenfeatures_transformer.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/scale.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/preprocessing/text_transformer.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/hill_climbing.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/optuna/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/optuna/catboost.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/optuna/extra_trees.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/optuna/knn.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/optuna/random_forest.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/tuner/random_parameters.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/additional_plots.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/common.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/config.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/constants.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/data_validation.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/jsonencoder.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/learning_curves.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/utils/subsample.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0a1}/supervised/validation/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mljar-supervised
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0a1
|
|
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.
|
|
@@ -19,7 +19,8 @@ Requires-Dist: numpy<3.0.0,>=2.0.0
|
|
|
19
19
|
Requires-Dist: pandas>=2.2.2
|
|
20
20
|
Requires-Dist: scipy>=1.13.1
|
|
21
21
|
Requires-Dist: scikit-learn>=1.5.0
|
|
22
|
-
Requires-Dist: xgboost>=2.1.
|
|
22
|
+
Requires-Dist: xgboost-cpu>=2.1.4; (sys_platform == "linux" and (platform_machine == "x86_64" or platform_machine == "aarch64")) or (sys_platform == "win32" and (platform_machine == "AMD64" or platform_machine == "x86_64"))
|
|
23
|
+
Requires-Dist: xgboost>=2.1.0; (sys_platform != "linux" or (platform_machine != "x86_64" and platform_machine != "aarch64")) and (sys_platform != "win32" or (platform_machine != "AMD64" and platform_machine != "x86_64"))
|
|
23
24
|
Requires-Dist: lightgbm>=4.3.0
|
|
24
25
|
Requires-Dist: catboost>=1.2.8
|
|
25
26
|
Requires-Dist: joblib>=1.0.1
|
|
@@ -33,6 +34,35 @@ Requires-Dist: mljar-scikit-plot>=0.3.11
|
|
|
33
34
|
Requires-Dist: markdown
|
|
34
35
|
Requires-Dist: typing-extensions
|
|
35
36
|
Requires-Dist: ipython
|
|
37
|
+
Requires-Dist: threadpoolctl>=3.1.0
|
|
38
|
+
Provides-Extra: feature-discovery
|
|
39
|
+
Requires-Dist: features-goldmine<1.2,>=1.1; python_version >= "3.10" and extra == "feature-discovery"
|
|
40
|
+
Provides-Extra: kumo
|
|
41
|
+
Requires-Dist: torch<3,>=2.7; extra == "kumo"
|
|
42
|
+
Requires-Dist: huggingface_hub<3,>=1; extra == "kumo"
|
|
43
|
+
Requires-Dist: psutil>=5.0; extra == "kumo"
|
|
44
|
+
Provides-Extra: tabiclv2
|
|
45
|
+
Requires-Dist: torch<3,>=2.7; extra == "tabiclv2"
|
|
46
|
+
Requires-Dist: huggingface_hub<3,>=1; extra == "tabiclv2"
|
|
47
|
+
Requires-Dist: psutil>=5.0; extra == "tabiclv2"
|
|
48
|
+
Provides-Extra: tfm
|
|
49
|
+
Requires-Dist: torch<3,>=2.7; extra == "tfm"
|
|
50
|
+
Requires-Dist: huggingface_hub<3,>=1; extra == "tfm"
|
|
51
|
+
Requires-Dist: psutil>=5.0; extra == "tfm"
|
|
52
|
+
Provides-Extra: realmlp
|
|
53
|
+
Requires-Dist: pytabkit<1.8,>=1.7.2; extra == "realmlp"
|
|
54
|
+
Requires-Dist: torch<3,>=2.7; extra == "realmlp"
|
|
55
|
+
Requires-Dist: psutil>=5.0; extra == "realmlp"
|
|
56
|
+
Provides-Extra: tabm
|
|
57
|
+
Requires-Dist: pytabkit<1.8,>=1.7.2; extra == "tabm"
|
|
58
|
+
Requires-Dist: torch<3,>=2.7; extra == "tabm"
|
|
59
|
+
Requires-Dist: psutil>=5.0; extra == "tabm"
|
|
60
|
+
Provides-Extra: all
|
|
61
|
+
Requires-Dist: pytabkit<1.8,>=1.7.2; extra == "all"
|
|
62
|
+
Requires-Dist: torch<3,>=2.7; extra == "all"
|
|
63
|
+
Requires-Dist: psutil>=5.0; extra == "all"
|
|
64
|
+
Requires-Dist: huggingface_hub<3,>=1; extra == "all"
|
|
65
|
+
Requires-Dist: features-goldmine<1.2,>=1.1; python_version >= "3.10" and extra == "all"
|
|
36
66
|
Dynamic: author
|
|
37
67
|
Dynamic: author-email
|
|
38
68
|
Dynamic: classifier
|
|
@@ -42,6 +72,7 @@ Dynamic: home-page
|
|
|
42
72
|
Dynamic: keywords
|
|
43
73
|
Dynamic: license
|
|
44
74
|
Dynamic: license-file
|
|
75
|
+
Dynamic: provides-extra
|
|
45
76
|
Dynamic: requires-dist
|
|
46
77
|
Dynamic: requires-python
|
|
47
78
|
Dynamic: summary
|
|
@@ -53,10 +84,6 @@ Dynamic: summary
|
|
|
53
84
|
[](https://github.com/mljar/mljar-supervised/actions/workflows/run-tests.yml)
|
|
54
85
|
[](https://badge.fury.io/py/mljar-supervised)
|
|
55
86
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
56
|
-
[](https://pypi.python.org/pypi/mljar-supervised/)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
60
87
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
61
88
|
[](https://pepy.tech/project/mljar-supervised)
|
|
62
89
|
|
|
@@ -89,9 +116,23 @@ Start quickly, iterate faster, and manage experiments in one place.
|
|
|
89
116
|
|
|
90
117
|
---
|
|
91
118
|
|
|
119
|
+
**Kumo and TabICLv2:** separate Compete algorithms with optional `[tfm]` dependencies
|
|
120
|
+
and a pinned SDM backend. Python 3.11+ required. See [installation and usage](docs/docs/features/sdm.md).
|
|
121
|
+
|
|
92
122
|
## Table of Contents
|
|
93
123
|
|
|
124
|
+
Install standard MLJAR with `python -m pip install mljar-supervised`.
|
|
125
|
+
For RealMLP, choose [CPU](docs/docs/install.md#realmlp-on-cpu) or
|
|
126
|
+
[NVIDIA GPU](docs/docs/install.md#realmlp-on-nvidia-gpu) setup, then install the
|
|
127
|
+
`[realmlp]` or `[all]` extra. **RealMLP currently requires installation from source**
|
|
128
|
+
and is available only in `mode="Compete"`.
|
|
129
|
+
See the [installation guide](docs/docs/install.md) for copyable commands and
|
|
130
|
+
checks, and the [RealMLP guide](docs/docs/features/realmlp.md) for usage.
|
|
131
|
+
[TabM mini](docs/docs/features/tabm.md) is also available in Compete mode through
|
|
132
|
+
`[tabm]` or `[all]`, using the same pytabkit/PyTorch dependencies and CPU/GPU setup.
|
|
133
|
+
|
|
94
134
|
- [Automated Machine Learning](https://github.com/mljar/mljar-supervised#automated-machine-learning)
|
|
135
|
+
- [Generate Web Apps for Trained Models](https://github.com/mljar/mljar-supervised#generate-web-apps-for-trained-models)
|
|
95
136
|
- [What's good in it?](https://github.com/mljar/mljar-supervised#whats-good-in-it)
|
|
96
137
|
- [Automatic Documentation](https://github.com/mljar/mljar-supervised#automatic-documentation)
|
|
97
138
|
- [Available Modes](https://github.com/mljar/mljar-supervised#available-modes)
|
|
@@ -116,9 +157,10 @@ Start quickly, iterate faster, and manage experiments in one place.
|
|
|
116
157
|
The `mljar-supervised` is an Automated Machine Learning Python package that works with tabular data. It is designed to save time for a data scientist. It abstracts the common way to preprocess the data, construct the machine learning models, and perform hyper-parameters tuning to find the best model :trophy:. It is no black box, as you can see exactly how the ML pipeline is constructed (with a detailed Markdown report for each ML model).
|
|
117
158
|
|
|
118
159
|
The `mljar-supervised` will help you with:
|
|
119
|
-
- explaining and understanding your data
|
|
160
|
+
- explaining and understanding your data through model reports, feature importance, and SHAP explanations,
|
|
120
161
|
- trying many different machine learning models (Algorithm Selection and Hyper-Parameters tuning),
|
|
121
162
|
- creating Markdown reports from analysis with details about all models (Automatic-Documentation),
|
|
163
|
+
- generating a web app for a trained model, so predictions can be used by domain experts,
|
|
122
164
|
- saving, re-running, and loading the analysis and ML models.
|
|
123
165
|
|
|
124
166
|
It has four built-in modes of work:
|
|
@@ -129,6 +171,47 @@ It has four built-in modes of work:
|
|
|
129
171
|
|
|
130
172
|
Of course, you can further customize the details of each `mode` to meet the requirements.
|
|
131
173
|
|
|
174
|
+
## Generate Web Apps for Trained Models
|
|
175
|
+
|
|
176
|
+
MLJAR AutoML does not stop after training a model. It can automatically generate a web app for your trained model with [Mercury](https://github.com/mljar/mercury). This is useful when you want to share predictions with domain experts, business users, researchers, or other people who do not want to work directly with Python code.
|
|
177
|
+
|
|
178
|
+
After training AutoML, generate the app files with:
|
|
179
|
+
|
|
180
|
+
```python
|
|
181
|
+
from supervised import AutoML
|
|
182
|
+
# AutoML training
|
|
183
|
+
automl = AutoML(results_path="AutoML")
|
|
184
|
+
automl.fit(X, y)
|
|
185
|
+
|
|
186
|
+
# Generate a Mercury web app for the trained model
|
|
187
|
+
automl.app()
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
You can also start the app locally:
|
|
191
|
+
|
|
192
|
+
```python
|
|
193
|
+
automl.local_app()
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
or publish it quickly:
|
|
197
|
+
|
|
198
|
+
```python
|
|
199
|
+
automl.publish_app()
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
`publish_app()` creates an app URL on the first publish and then reuses the last successfully published URL by default.
|
|
203
|
+
|
|
204
|
+
The generated app can include:
|
|
205
|
+
- single prediction dashboard,
|
|
206
|
+
- batch prediction from CSV files,
|
|
207
|
+
- downloadable predictions,
|
|
208
|
+
- feature importance plots,
|
|
209
|
+
- feature context plots for single predictions.
|
|
210
|
+
|
|
211
|
+
With this feature, you can go from: CSV data -> trained ML model -> ready-to-use prediction web app.
|
|
212
|
+
|
|
213
|
+
Please check the [Apps documentation](https://supervised.mljar.com/features/apps/) for details.
|
|
214
|
+
|
|
132
215
|
## What's good in it?
|
|
133
216
|
|
|
134
217
|
- It uses many algorithms: `Baseline`, `Linear`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Networks`, and `Nearest Neighbors`.
|
|
@@ -141,7 +224,8 @@ Of course, you can further customize the details of each `mode` to meet the requ
|
|
|
141
224
|
- It has extensive explanations. This package is training simple `Decision Trees` with `max_depth <= 5`, so you can easily visualize them with amazing [dtreeviz](https://github.com/parrt/dtreeviz) to better understand your data.
|
|
142
225
|
- The `mljar-supervised` uses simple linear regression and includes its coefficients in the summary report, so you can check which features are used the most in the linear model.
|
|
143
226
|
- It cares about the explainability of models: for every algorithm, the feature importance is computed based on permutation. Additionally, for every algorithm, the SHAP explanations are computed: feature importance, dependence plots, and decision plots (explanations can be switched off with the `explain_level` parameter).
|
|
144
|
-
- There is automatic documentation for every ML experiment run with AutoML. The `mljar-supervised` creates markdown reports from AutoML training full of ML details, metrics, and charts.
|
|
227
|
+
- There is automatic documentation for every ML experiment run with AutoML. The `mljar-supervised` creates markdown reports from AutoML training full of ML details, metrics, and charts.
|
|
228
|
+
- It can generate Mercury web apps from trained AutoML models, so the model can be shared as an interactive prediction app.
|
|
145
229
|
|
|
146
230
|
<p align="center">
|
|
147
231
|
<img src="https://raw.githubusercontent.com/mljar/visual-identity/main/media/infograph.png" width="100%" />
|
|
@@ -210,6 +294,10 @@ automl = AutoML(mode="Compete")
|
|
|
210
294
|
```
|
|
211
295
|
|
|
212
296
|
It should be used for machine learning competitions.
|
|
297
|
+
Kumo (small/medium/large) and TabICLv2 are also available with the
|
|
298
|
+
[optional SDM installation](docs/docs/install.md#kumo-and-tabiclv2-on-cpu-or-nvidia-gpu).
|
|
299
|
+
They are selected automatically when the backend and CUDA are available; select
|
|
300
|
+
them explicitly for CPU use.
|
|
213
301
|
- It adapts the validation strategy depending on dataset size and `total_time_limit`. It can be: a train/test split (80/20), 5-fold CV or 10-fold CV.
|
|
214
302
|
- It is using: `Linear`, `Decision Tree`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Network`, and `Nearest Neighbors`. It uses ensemble and **stacking**.
|
|
215
303
|
- It has only learning curves in the reports.
|
|
@@ -262,6 +350,8 @@ All models are automatically saved to be able to restore the training after inte
|
|
|
262
350
|
- for multiclass classification: `logloss`, `f1`, `accuracy` - default is `logloss`
|
|
263
351
|
- for regression: `rmse`, `mse`, `mae`, `r2`, `mape`, `spearman`, `pearson` - default is `rmse`
|
|
264
352
|
|
|
353
|
+
You can also pass a custom Python function directly as `eval_metric`. See the docs for [Custom eval metric](https://supervised.mljar.com/features/custom-eval-metric/).
|
|
354
|
+
|
|
265
355
|
If you don't find the `eval_metric` that you need, please add a new issue. We will add it.
|
|
266
356
|
|
|
267
357
|
|
|
@@ -427,6 +517,8 @@ print("Test MSE:", mean_squared_error(y_test, predictions))
|
|
|
427
517
|
|
|
428
518
|
## :point_right: More Examples
|
|
429
519
|
|
|
520
|
+
- [**IP address classification**](examples/scripts/binary_classifier_ip_addresses.py) - train on raw IPv4/IPv6 strings and verify predictions after reload; see the [tutorial](docs/docs/tutorials/ip-addresses.md).
|
|
521
|
+
|
|
430
522
|
- [**Income classification**](https://github.com/mljar/mljar-examples/tree/master/Income_classification) - it is a binary classification task on census data
|
|
431
523
|
- [**Iris classification**](https://github.com/mljar/mljar-examples/tree/master/Iris_classification) - it is a multiclass classification on Iris flowers data
|
|
432
524
|
- [**House price regression**](https://github.com/mljar/mljar-examples/tree/master/House_price_regression) - it is a regression task on Boston houses data
|
|
@@ -552,6 +644,10 @@ When `model_name` is provided, the markdown includes detailed metrics, fairness
|
|
|
552
644
|
|
|
553
645
|
# Installation
|
|
554
646
|
|
|
647
|
+
For standard MLJAR, optional neural models, and Kumo/TabICLv2 CPU/GPU setup, see the
|
|
648
|
+
[installation guide](docs/docs/install.md). Version `1.4.0a1` is an alpha
|
|
649
|
+
release with optional RealMLP, TabM mini, Kumo and TabICLv2 support.
|
|
650
|
+
|
|
555
651
|
Compatibility:
|
|
556
652
|
- Python `>=3.9`
|
|
557
653
|
- NumPy `>=2.0,<3`
|
|
@@ -562,6 +658,15 @@ From PyPi repository:
|
|
|
562
658
|
pip install mljar-supervised
|
|
563
659
|
```
|
|
564
660
|
|
|
661
|
+
To test the alpha release, select its exact version:
|
|
662
|
+
|
|
663
|
+
```bash
|
|
664
|
+
python -m pip install "mljar-supervised==1.4.0a1"
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
See the [release notes](https://github.com/mljar/mljar-supervised/blob/master/release.md)
|
|
668
|
+
for changes and optional-model requirements.
|
|
669
|
+
|
|
565
670
|
To install this package with conda run:
|
|
566
671
|
```
|
|
567
672
|
conda install -c conda-forge mljar-supervised
|
mljar_supervised-1.2.2/mljar_supervised.egg-info/PKG-INFO → mljar_supervised-1.4.0a1/README.md
RENAMED
|
@@ -1,51 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: mljar-supervised
|
|
3
|
-
Version: 1.2.2
|
|
4
|
-
Summary: Automated Machine Learning for Humans
|
|
5
|
-
Home-page: https://github.com/mljar/mljar-supervised
|
|
6
|
-
Author: MLJAR, Sp. z o.o.
|
|
7
|
-
Author-email: contact@mljar.com
|
|
8
|
-
License: MIT
|
|
9
|
-
Keywords: automated machine learning,automl,machine learning,data science,data mining,mljar,random forest,decision tree,xgboost,lightgbm,catboost,neural network,extra trees,linear model,features selection,features engineering
|
|
10
|
-
Classifier: Programming Language :: Python
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
-
Requires-Python: >=3.9
|
|
16
|
-
Description-Content-Type: text/markdown
|
|
17
|
-
License-File: LICENSE
|
|
18
|
-
Requires-Dist: numpy<3.0.0,>=2.0.0
|
|
19
|
-
Requires-Dist: pandas>=2.2.2
|
|
20
|
-
Requires-Dist: scipy>=1.13.1
|
|
21
|
-
Requires-Dist: scikit-learn>=1.5.0
|
|
22
|
-
Requires-Dist: xgboost>=2.1.0
|
|
23
|
-
Requires-Dist: lightgbm>=4.3.0
|
|
24
|
-
Requires-Dist: catboost>=1.2.8
|
|
25
|
-
Requires-Dist: joblib>=1.0.1
|
|
26
|
-
Requires-Dist: tabulate>=0.8.7
|
|
27
|
-
Requires-Dist: matplotlib>=3.8.4
|
|
28
|
-
Requires-Dist: dtreeviz>=2.2.2
|
|
29
|
-
Requires-Dist: shap>=0.46.0
|
|
30
|
-
Requires-Dist: seaborn>=0.13.2
|
|
31
|
-
Requires-Dist: optuna-integration>=3.6.0
|
|
32
|
-
Requires-Dist: mljar-scikit-plot>=0.3.11
|
|
33
|
-
Requires-Dist: markdown
|
|
34
|
-
Requires-Dist: typing-extensions
|
|
35
|
-
Requires-Dist: ipython
|
|
36
|
-
Dynamic: author
|
|
37
|
-
Dynamic: author-email
|
|
38
|
-
Dynamic: classifier
|
|
39
|
-
Dynamic: description
|
|
40
|
-
Dynamic: description-content-type
|
|
41
|
-
Dynamic: home-page
|
|
42
|
-
Dynamic: keywords
|
|
43
|
-
Dynamic: license
|
|
44
|
-
Dynamic: license-file
|
|
45
|
-
Dynamic: requires-dist
|
|
46
|
-
Dynamic: requires-python
|
|
47
|
-
Dynamic: summary
|
|
48
|
-
|
|
49
1
|
|
|
50
2
|
|
|
51
3
|
# MLJAR Automated Machine Learning for Humans
|
|
@@ -53,10 +5,6 @@ Dynamic: summary
|
|
|
53
5
|
[](https://github.com/mljar/mljar-supervised/actions/workflows/run-tests.yml)
|
|
54
6
|
[](https://badge.fury.io/py/mljar-supervised)
|
|
55
7
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
56
|
-
[](https://pypi.python.org/pypi/mljar-supervised/)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
60
8
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
61
9
|
[](https://pepy.tech/project/mljar-supervised)
|
|
62
10
|
|
|
@@ -89,9 +37,23 @@ Start quickly, iterate faster, and manage experiments in one place.
|
|
|
89
37
|
|
|
90
38
|
---
|
|
91
39
|
|
|
40
|
+
**Kumo and TabICLv2:** separate Compete algorithms with optional `[tfm]` dependencies
|
|
41
|
+
and a pinned SDM backend. Python 3.11+ required. See [installation and usage](docs/docs/features/sdm.md).
|
|
42
|
+
|
|
92
43
|
## Table of Contents
|
|
93
44
|
|
|
45
|
+
Install standard MLJAR with `python -m pip install mljar-supervised`.
|
|
46
|
+
For RealMLP, choose [CPU](docs/docs/install.md#realmlp-on-cpu) or
|
|
47
|
+
[NVIDIA GPU](docs/docs/install.md#realmlp-on-nvidia-gpu) setup, then install the
|
|
48
|
+
`[realmlp]` or `[all]` extra. **RealMLP currently requires installation from source**
|
|
49
|
+
and is available only in `mode="Compete"`.
|
|
50
|
+
See the [installation guide](docs/docs/install.md) for copyable commands and
|
|
51
|
+
checks, and the [RealMLP guide](docs/docs/features/realmlp.md) for usage.
|
|
52
|
+
[TabM mini](docs/docs/features/tabm.md) is also available in Compete mode through
|
|
53
|
+
`[tabm]` or `[all]`, using the same pytabkit/PyTorch dependencies and CPU/GPU setup.
|
|
54
|
+
|
|
94
55
|
- [Automated Machine Learning](https://github.com/mljar/mljar-supervised#automated-machine-learning)
|
|
56
|
+
- [Generate Web Apps for Trained Models](https://github.com/mljar/mljar-supervised#generate-web-apps-for-trained-models)
|
|
95
57
|
- [What's good in it?](https://github.com/mljar/mljar-supervised#whats-good-in-it)
|
|
96
58
|
- [Automatic Documentation](https://github.com/mljar/mljar-supervised#automatic-documentation)
|
|
97
59
|
- [Available Modes](https://github.com/mljar/mljar-supervised#available-modes)
|
|
@@ -116,9 +78,10 @@ Start quickly, iterate faster, and manage experiments in one place.
|
|
|
116
78
|
The `mljar-supervised` is an Automated Machine Learning Python package that works with tabular data. It is designed to save time for a data scientist. It abstracts the common way to preprocess the data, construct the machine learning models, and perform hyper-parameters tuning to find the best model :trophy:. It is no black box, as you can see exactly how the ML pipeline is constructed (with a detailed Markdown report for each ML model).
|
|
117
79
|
|
|
118
80
|
The `mljar-supervised` will help you with:
|
|
119
|
-
- explaining and understanding your data
|
|
81
|
+
- explaining and understanding your data through model reports, feature importance, and SHAP explanations,
|
|
120
82
|
- trying many different machine learning models (Algorithm Selection and Hyper-Parameters tuning),
|
|
121
83
|
- creating Markdown reports from analysis with details about all models (Automatic-Documentation),
|
|
84
|
+
- generating a web app for a trained model, so predictions can be used by domain experts,
|
|
122
85
|
- saving, re-running, and loading the analysis and ML models.
|
|
123
86
|
|
|
124
87
|
It has four built-in modes of work:
|
|
@@ -129,6 +92,47 @@ It has four built-in modes of work:
|
|
|
129
92
|
|
|
130
93
|
Of course, you can further customize the details of each `mode` to meet the requirements.
|
|
131
94
|
|
|
95
|
+
## Generate Web Apps for Trained Models
|
|
96
|
+
|
|
97
|
+
MLJAR AutoML does not stop after training a model. It can automatically generate a web app for your trained model with [Mercury](https://github.com/mljar/mercury). This is useful when you want to share predictions with domain experts, business users, researchers, or other people who do not want to work directly with Python code.
|
|
98
|
+
|
|
99
|
+
After training AutoML, generate the app files with:
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
from supervised import AutoML
|
|
103
|
+
# AutoML training
|
|
104
|
+
automl = AutoML(results_path="AutoML")
|
|
105
|
+
automl.fit(X, y)
|
|
106
|
+
|
|
107
|
+
# Generate a Mercury web app for the trained model
|
|
108
|
+
automl.app()
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
You can also start the app locally:
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
automl.local_app()
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
or publish it quickly:
|
|
118
|
+
|
|
119
|
+
```python
|
|
120
|
+
automl.publish_app()
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
`publish_app()` creates an app URL on the first publish and then reuses the last successfully published URL by default.
|
|
124
|
+
|
|
125
|
+
The generated app can include:
|
|
126
|
+
- single prediction dashboard,
|
|
127
|
+
- batch prediction from CSV files,
|
|
128
|
+
- downloadable predictions,
|
|
129
|
+
- feature importance plots,
|
|
130
|
+
- feature context plots for single predictions.
|
|
131
|
+
|
|
132
|
+
With this feature, you can go from: CSV data -> trained ML model -> ready-to-use prediction web app.
|
|
133
|
+
|
|
134
|
+
Please check the [Apps documentation](https://supervised.mljar.com/features/apps/) for details.
|
|
135
|
+
|
|
132
136
|
## What's good in it?
|
|
133
137
|
|
|
134
138
|
- It uses many algorithms: `Baseline`, `Linear`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Networks`, and `Nearest Neighbors`.
|
|
@@ -141,7 +145,8 @@ Of course, you can further customize the details of each `mode` to meet the requ
|
|
|
141
145
|
- It has extensive explanations. This package is training simple `Decision Trees` with `max_depth <= 5`, so you can easily visualize them with amazing [dtreeviz](https://github.com/parrt/dtreeviz) to better understand your data.
|
|
142
146
|
- The `mljar-supervised` uses simple linear regression and includes its coefficients in the summary report, so you can check which features are used the most in the linear model.
|
|
143
147
|
- It cares about the explainability of models: for every algorithm, the feature importance is computed based on permutation. Additionally, for every algorithm, the SHAP explanations are computed: feature importance, dependence plots, and decision plots (explanations can be switched off with the `explain_level` parameter).
|
|
144
|
-
- There is automatic documentation for every ML experiment run with AutoML. The `mljar-supervised` creates markdown reports from AutoML training full of ML details, metrics, and charts.
|
|
148
|
+
- There is automatic documentation for every ML experiment run with AutoML. The `mljar-supervised` creates markdown reports from AutoML training full of ML details, metrics, and charts.
|
|
149
|
+
- It can generate Mercury web apps from trained AutoML models, so the model can be shared as an interactive prediction app.
|
|
145
150
|
|
|
146
151
|
<p align="center">
|
|
147
152
|
<img src="https://raw.githubusercontent.com/mljar/visual-identity/main/media/infograph.png" width="100%" />
|
|
@@ -210,6 +215,10 @@ automl = AutoML(mode="Compete")
|
|
|
210
215
|
```
|
|
211
216
|
|
|
212
217
|
It should be used for machine learning competitions.
|
|
218
|
+
Kumo (small/medium/large) and TabICLv2 are also available with the
|
|
219
|
+
[optional SDM installation](docs/docs/install.md#kumo-and-tabiclv2-on-cpu-or-nvidia-gpu).
|
|
220
|
+
They are selected automatically when the backend and CUDA are available; select
|
|
221
|
+
them explicitly for CPU use.
|
|
213
222
|
- It adapts the validation strategy depending on dataset size and `total_time_limit`. It can be: a train/test split (80/20), 5-fold CV or 10-fold CV.
|
|
214
223
|
- It is using: `Linear`, `Decision Tree`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Network`, and `Nearest Neighbors`. It uses ensemble and **stacking**.
|
|
215
224
|
- It has only learning curves in the reports.
|
|
@@ -262,6 +271,8 @@ All models are automatically saved to be able to restore the training after inte
|
|
|
262
271
|
- for multiclass classification: `logloss`, `f1`, `accuracy` - default is `logloss`
|
|
263
272
|
- for regression: `rmse`, `mse`, `mae`, `r2`, `mape`, `spearman`, `pearson` - default is `rmse`
|
|
264
273
|
|
|
274
|
+
You can also pass a custom Python function directly as `eval_metric`. See the docs for [Custom eval metric](https://supervised.mljar.com/features/custom-eval-metric/).
|
|
275
|
+
|
|
265
276
|
If you don't find the `eval_metric` that you need, please add a new issue. We will add it.
|
|
266
277
|
|
|
267
278
|
|
|
@@ -427,6 +438,8 @@ print("Test MSE:", mean_squared_error(y_test, predictions))
|
|
|
427
438
|
|
|
428
439
|
## :point_right: More Examples
|
|
429
440
|
|
|
441
|
+
- [**IP address classification**](examples/scripts/binary_classifier_ip_addresses.py) - train on raw IPv4/IPv6 strings and verify predictions after reload; see the [tutorial](docs/docs/tutorials/ip-addresses.md).
|
|
442
|
+
|
|
430
443
|
- [**Income classification**](https://github.com/mljar/mljar-examples/tree/master/Income_classification) - it is a binary classification task on census data
|
|
431
444
|
- [**Iris classification**](https://github.com/mljar/mljar-examples/tree/master/Iris_classification) - it is a multiclass classification on Iris flowers data
|
|
432
445
|
- [**House price regression**](https://github.com/mljar/mljar-examples/tree/master/House_price_regression) - it is a regression task on Boston houses data
|
|
@@ -552,6 +565,10 @@ When `model_name` is provided, the markdown includes detailed metrics, fairness
|
|
|
552
565
|
|
|
553
566
|
# Installation
|
|
554
567
|
|
|
568
|
+
For standard MLJAR, optional neural models, and Kumo/TabICLv2 CPU/GPU setup, see the
|
|
569
|
+
[installation guide](docs/docs/install.md). Version `1.4.0a1` is an alpha
|
|
570
|
+
release with optional RealMLP, TabM mini, Kumo and TabICLv2 support.
|
|
571
|
+
|
|
555
572
|
Compatibility:
|
|
556
573
|
- Python `>=3.9`
|
|
557
574
|
- NumPy `>=2.0,<3`
|
|
@@ -562,6 +579,15 @@ From PyPi repository:
|
|
|
562
579
|
pip install mljar-supervised
|
|
563
580
|
```
|
|
564
581
|
|
|
582
|
+
To test the alpha release, select its exact version:
|
|
583
|
+
|
|
584
|
+
```bash
|
|
585
|
+
python -m pip install "mljar-supervised==1.4.0a1"
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
See the [release notes](https://github.com/mljar/mljar-supervised/blob/master/release.md)
|
|
589
|
+
for changes and optional-model requirements.
|
|
590
|
+
|
|
565
591
|
To install this package with conda run:
|
|
566
592
|
```
|
|
567
593
|
conda install -c conda-forge mljar-supervised
|