mljar-supervised 1.2.2__tar.gz → 1.4.0rc2__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.4.0rc2/LICENSE-pytabkit.txt +201 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/PKG-INFO +109 -7
- mljar_supervised-1.2.2/mljar_supervised.egg-info/PKG-INFO → mljar_supervised-1.4.0rc2/README.md +80 -54
- mljar_supervised-1.2.2/README.md → mljar_supervised-1.4.0rc2/mljar_supervised.egg-info/PKG-INFO +156 -6
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/mljar_supervised.egg-info/SOURCES.txt +23 -0
- mljar_supervised-1.4.0rc2/mljar_supervised.egg-info/requires.txt +50 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/requirements.txt +2 -0
- mljar_supervised-1.4.0rc2/requirements_dev.txt +10 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/setup.py +10 -1
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/__init__.py +1 -1
- mljar_supervised-1.4.0rc2/supervised/algorithms/_pytabkit_compat.py +128 -0
- mljar_supervised-1.4.0rc2/supervised/algorithms/_realmlp_backend.py +84 -0
- mljar_supervised-1.4.0rc2/supervised/algorithms/_sdm_backend.py +75 -0
- mljar_supervised-1.4.0rc2/supervised/algorithms/_tabm_backend.py +221 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/algorithm.py +26 -8
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/catboost.py +15 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/decision_tree.py +6 -1
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/extra_trees.py +2 -0
- mljar_supervised-1.4.0rc2/supervised/algorithms/knn.py +277 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/lightgbm.py +17 -5
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/linear.py +2 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/nn.py +22 -1
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/random_forest.py +2 -0
- mljar_supervised-1.4.0rc2/supervised/algorithms/realmlp.py +586 -0
- mljar_supervised-1.4.0rc2/supervised/algorithms/realmlp_resources.py +153 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/registry.py +10 -1
- mljar_supervised-1.4.0rc2/supervised/algorithms/sdm.py +577 -0
- mljar_supervised-1.4.0rc2/supervised/algorithms/tabm.py +345 -0
- mljar_supervised-1.4.0rc2/supervised/algorithms/tabm_resources.py +94 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/xgboost.py +12 -5
- mljar_supervised-1.4.0rc2/supervised/apps/__init__.py +5 -0
- mljar_supervised-1.4.0rc2/supervised/apps/generator.py +231 -0
- mljar_supervised-1.4.0rc2/supervised/apps/local_runner.py +120 -0
- mljar_supervised-1.4.0rc2/supervised/apps/metadata.py +380 -0
- mljar_supervised-1.4.0rc2/supervised/apps/publisher.py +497 -0
- mljar_supervised-1.4.0rc2/supervised/apps/templates.py +633 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/automl.py +122 -10
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/base_automl.py +255 -45
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/callbacks/early_stopping.py +11 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/ensemble.py +11 -6
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/exceptions.py +0 -1
- mljar_supervised-1.4.0rc2/supervised/fairness/certificate.py +129 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/fairness/report.py +55 -2
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/model_framework.py +60 -15
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/encoding_selector.py +4 -3
- mljar_supervised-1.4.0rc2/supervised/preprocessing/ip_transformer.py +94 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/kmeans_transformer.py +8 -4
- mljar_supervised-1.4.0rc2/supervised/preprocessing/label_encoder.py +116 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/preprocessing.py +53 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/preprocessing_categorical.py +12 -14
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/preprocessing_missing.py +10 -2
- mljar_supervised-1.4.0rc2/supervised/preprocessing/preprocessing_utils.py +201 -0
- mljar_supervised-1.4.0rc2/supervised/tuner/custom_parameters.py +62 -0
- mljar_supervised-1.4.0rc2/supervised/tuner/data_info.py +83 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/mljar_tuner.py +106 -41
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/optuna/lightgbm.py +7 -2
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/optuna/nn.py +2 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/optuna/tuner.py +3 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/optuna/xgboost.py +8 -2
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/preprocessing_tuner.py +10 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/additional_metrics.py +40 -3
- mljar_supervised-1.4.0rc2/supervised/utils/artifact_paths.py +14 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/automl_plots.py +8 -47
- mljar_supervised-1.4.0rc2/supervised/utils/blueprint.py +494 -0
- mljar_supervised-1.4.0rc2/supervised/utils/column_scan.py +58 -0
- mljar_supervised-1.4.0rc2/supervised/utils/feature_importance.py +266 -0
- mljar_supervised-1.4.0rc2/supervised/utils/importance.py +150 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/leaderboard_plots.py +31 -15
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/metric.py +39 -19
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/report_structured.py +93 -52
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/shap.py +11 -1
- mljar_supervised-1.4.0rc2/supervised/utils/utils.py +94 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/validation/validation_step.py +5 -4
- mljar_supervised-1.4.0rc2/supervised/validation/validator_base.py +36 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/validation/validator_custom.py +5 -29
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/validation/validator_kfold.py +13 -31
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/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_dev.txt +0 -4
- mljar_supervised-1.2.2/supervised/algorithms/knn.py +0 -137
- 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.0rc2}/LICENSE +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/MANIFEST.in +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/mljar_supervised.egg-info/dependency_links.txt +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/mljar_supervised.egg-info/top_level.txt +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/setup.cfg +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/baseline.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/factory.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/algorithms/sklearn.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/callbacks/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/callbacks/callback.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/callbacks/callback_list.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/callbacks/learner_time_constraint.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/callbacks/max_iters_constraint.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/callbacks/metric_logger.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/callbacks/terminate_on_nan.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/callbacks/total_time_constraint.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/fairness/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/fairness/metrics.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/fairness/optimization.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/fairness/plots.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/fairness/utils.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/datetime_transformer.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/exclude_missing_target.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/goldenfeatures_transformer.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/label_binarizer.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/scale.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/preprocessing/text_transformer.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/hill_climbing.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/optuna/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/optuna/catboost.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/optuna/extra_trees.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/optuna/knn.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/optuna/random_forest.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/random_parameters.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/tuner/time_controller.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/__init__.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/additional_plots.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/common.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/config.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/constants.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/data_validation.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/jsonencoder.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/learning_curves.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/utils/subsample.py +0 -0
- {mljar_supervised-1.2.2 → mljar_supervised-1.4.0rc2}/supervised/validation/__init__.py +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mljar-supervised
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0rc2
|
|
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.
|
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
15
15
|
Requires-Python: >=3.9
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
+
License-File: LICENSE-pytabkit.txt
|
|
18
19
|
Requires-Dist: numpy<3.0.0,>=2.0.0
|
|
19
20
|
Requires-Dist: pandas>=2.2.2
|
|
20
21
|
Requires-Dist: scipy>=1.13.1
|
|
@@ -33,6 +34,32 @@ 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: kumo
|
|
39
|
+
Requires-Dist: torch<3,>=2.7; extra == "kumo"
|
|
40
|
+
Requires-Dist: huggingface_hub<3,>=1; extra == "kumo"
|
|
41
|
+
Requires-Dist: psutil>=5.0; extra == "kumo"
|
|
42
|
+
Provides-Extra: tabiclv2
|
|
43
|
+
Requires-Dist: torch<3,>=2.7; extra == "tabiclv2"
|
|
44
|
+
Requires-Dist: huggingface_hub<3,>=1; extra == "tabiclv2"
|
|
45
|
+
Requires-Dist: psutil>=5.0; extra == "tabiclv2"
|
|
46
|
+
Provides-Extra: tfm
|
|
47
|
+
Requires-Dist: torch<3,>=2.7; extra == "tfm"
|
|
48
|
+
Requires-Dist: huggingface_hub<3,>=1; extra == "tfm"
|
|
49
|
+
Requires-Dist: psutil>=5.0; extra == "tfm"
|
|
50
|
+
Provides-Extra: realmlp
|
|
51
|
+
Requires-Dist: pytabkit<1.8,>=1.7.2; extra == "realmlp"
|
|
52
|
+
Requires-Dist: torch<3,>=2.7; extra == "realmlp"
|
|
53
|
+
Requires-Dist: psutil>=5.0; extra == "realmlp"
|
|
54
|
+
Provides-Extra: tabm
|
|
55
|
+
Requires-Dist: pytabkit<1.8,>=1.7.2; extra == "tabm"
|
|
56
|
+
Requires-Dist: torch<3,>=2.7; extra == "tabm"
|
|
57
|
+
Requires-Dist: psutil>=5.0; extra == "tabm"
|
|
58
|
+
Provides-Extra: all
|
|
59
|
+
Requires-Dist: pytabkit<1.8,>=1.7.2; extra == "all"
|
|
60
|
+
Requires-Dist: torch<3,>=2.7; extra == "all"
|
|
61
|
+
Requires-Dist: psutil>=5.0; extra == "all"
|
|
62
|
+
Requires-Dist: huggingface_hub<3,>=1; extra == "all"
|
|
36
63
|
Dynamic: author
|
|
37
64
|
Dynamic: author-email
|
|
38
65
|
Dynamic: classifier
|
|
@@ -42,6 +69,7 @@ Dynamic: home-page
|
|
|
42
69
|
Dynamic: keywords
|
|
43
70
|
Dynamic: license
|
|
44
71
|
Dynamic: license-file
|
|
72
|
+
Dynamic: provides-extra
|
|
45
73
|
Dynamic: requires-dist
|
|
46
74
|
Dynamic: requires-python
|
|
47
75
|
Dynamic: summary
|
|
@@ -53,10 +81,6 @@ Dynamic: summary
|
|
|
53
81
|
[](https://github.com/mljar/mljar-supervised/actions/workflows/run-tests.yml)
|
|
54
82
|
[](https://badge.fury.io/py/mljar-supervised)
|
|
55
83
|
[](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
84
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
61
85
|
[](https://pepy.tech/project/mljar-supervised)
|
|
62
86
|
|
|
@@ -89,9 +113,23 @@ Start quickly, iterate faster, and manage experiments in one place.
|
|
|
89
113
|
|
|
90
114
|
---
|
|
91
115
|
|
|
116
|
+
**Kumo and TabICLv2:** separate Compete algorithms with optional `[tfm]` dependencies
|
|
117
|
+
and a pinned SDM backend. Python 3.11+ required. See [installation and usage](docs/docs/features/sdm.md).
|
|
118
|
+
|
|
92
119
|
## Table of Contents
|
|
93
120
|
|
|
121
|
+
Install standard MLJAR with `python -m pip install mljar-supervised`.
|
|
122
|
+
For RealMLP, choose [CPU](docs/docs/install.md#realmlp-on-cpu) or
|
|
123
|
+
[NVIDIA GPU](docs/docs/install.md#realmlp-on-nvidia-gpu) setup, then install the
|
|
124
|
+
`[realmlp]` or `[all]` extra. **RealMLP currently requires installation from source**
|
|
125
|
+
and is available only in `mode="Compete"`.
|
|
126
|
+
See the [installation guide](docs/docs/install.md) for copyable commands and
|
|
127
|
+
checks, and the [RealMLP guide](docs/docs/features/realmlp.md) for usage.
|
|
128
|
+
[TabM mini](docs/docs/features/tabm.md) is also available in Compete mode through
|
|
129
|
+
`[tabm]` or `[all]`, using the same pytabkit/PyTorch dependencies and CPU/GPU setup.
|
|
130
|
+
|
|
94
131
|
- [Automated Machine Learning](https://github.com/mljar/mljar-supervised#automated-machine-learning)
|
|
132
|
+
- [Generate Web Apps for Trained Models](https://github.com/mljar/mljar-supervised#generate-web-apps-for-trained-models)
|
|
95
133
|
- [What's good in it?](https://github.com/mljar/mljar-supervised#whats-good-in-it)
|
|
96
134
|
- [Automatic Documentation](https://github.com/mljar/mljar-supervised#automatic-documentation)
|
|
97
135
|
- [Available Modes](https://github.com/mljar/mljar-supervised#available-modes)
|
|
@@ -116,9 +154,10 @@ Start quickly, iterate faster, and manage experiments in one place.
|
|
|
116
154
|
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
155
|
|
|
118
156
|
The `mljar-supervised` will help you with:
|
|
119
|
-
- explaining and understanding your data
|
|
157
|
+
- explaining and understanding your data through model reports, feature importance, and SHAP explanations,
|
|
120
158
|
- trying many different machine learning models (Algorithm Selection and Hyper-Parameters tuning),
|
|
121
159
|
- creating Markdown reports from analysis with details about all models (Automatic-Documentation),
|
|
160
|
+
- generating a web app for a trained model, so predictions can be used by domain experts,
|
|
122
161
|
- saving, re-running, and loading the analysis and ML models.
|
|
123
162
|
|
|
124
163
|
It has four built-in modes of work:
|
|
@@ -129,6 +168,47 @@ It has four built-in modes of work:
|
|
|
129
168
|
|
|
130
169
|
Of course, you can further customize the details of each `mode` to meet the requirements.
|
|
131
170
|
|
|
171
|
+
## Generate Web Apps for Trained Models
|
|
172
|
+
|
|
173
|
+
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.
|
|
174
|
+
|
|
175
|
+
After training AutoML, generate the app files with:
|
|
176
|
+
|
|
177
|
+
```python
|
|
178
|
+
from supervised import AutoML
|
|
179
|
+
# AutoML training
|
|
180
|
+
automl = AutoML(results_path="AutoML")
|
|
181
|
+
automl.fit(X, y)
|
|
182
|
+
|
|
183
|
+
# Generate a Mercury web app for the trained model
|
|
184
|
+
automl.app()
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
You can also start the app locally:
|
|
188
|
+
|
|
189
|
+
```python
|
|
190
|
+
automl.local_app()
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
or publish it quickly:
|
|
194
|
+
|
|
195
|
+
```python
|
|
196
|
+
automl.publish_app()
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
`publish_app()` creates an app URL on the first publish and then reuses the last successfully published URL by default.
|
|
200
|
+
|
|
201
|
+
The generated app can include:
|
|
202
|
+
- single prediction dashboard,
|
|
203
|
+
- batch prediction from CSV files,
|
|
204
|
+
- downloadable predictions,
|
|
205
|
+
- feature importance plots,
|
|
206
|
+
- feature context plots for single predictions.
|
|
207
|
+
|
|
208
|
+
With this feature, you can go from: CSV data -> trained ML model -> ready-to-use prediction web app.
|
|
209
|
+
|
|
210
|
+
Please check the [Apps documentation](https://supervised.mljar.com/features/apps/) for details.
|
|
211
|
+
|
|
132
212
|
## What's good in it?
|
|
133
213
|
|
|
134
214
|
- It uses many algorithms: `Baseline`, `Linear`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Networks`, and `Nearest Neighbors`.
|
|
@@ -141,7 +221,8 @@ Of course, you can further customize the details of each `mode` to meet the requ
|
|
|
141
221
|
- 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
222
|
- 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
223
|
- 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.
|
|
224
|
+
- 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.
|
|
225
|
+
- It can generate Mercury web apps from trained AutoML models, so the model can be shared as an interactive prediction app.
|
|
145
226
|
|
|
146
227
|
<p align="center">
|
|
147
228
|
<img src="https://raw.githubusercontent.com/mljar/visual-identity/main/media/infograph.png" width="100%" />
|
|
@@ -210,6 +291,10 @@ automl = AutoML(mode="Compete")
|
|
|
210
291
|
```
|
|
211
292
|
|
|
212
293
|
It should be used for machine learning competitions.
|
|
294
|
+
Kumo (small/medium/large) and TabICLv2 are also available with the
|
|
295
|
+
[optional SDM installation](docs/docs/install.md#kumo-and-tabiclv2-on-cpu-or-nvidia-gpu).
|
|
296
|
+
They are selected automatically when the backend and CUDA are available; select
|
|
297
|
+
them explicitly for CPU use.
|
|
213
298
|
- 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
299
|
- It is using: `Linear`, `Decision Tree`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Network`, and `Nearest Neighbors`. It uses ensemble and **stacking**.
|
|
215
300
|
- It has only learning curves in the reports.
|
|
@@ -262,6 +347,8 @@ All models are automatically saved to be able to restore the training after inte
|
|
|
262
347
|
- for multiclass classification: `logloss`, `f1`, `accuracy` - default is `logloss`
|
|
263
348
|
- for regression: `rmse`, `mse`, `mae`, `r2`, `mape`, `spearman`, `pearson` - default is `rmse`
|
|
264
349
|
|
|
350
|
+
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/).
|
|
351
|
+
|
|
265
352
|
If you don't find the `eval_metric` that you need, please add a new issue. We will add it.
|
|
266
353
|
|
|
267
354
|
|
|
@@ -427,6 +514,8 @@ print("Test MSE:", mean_squared_error(y_test, predictions))
|
|
|
427
514
|
|
|
428
515
|
## :point_right: More Examples
|
|
429
516
|
|
|
517
|
+
- [**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).
|
|
518
|
+
|
|
430
519
|
- [**Income classification**](https://github.com/mljar/mljar-examples/tree/master/Income_classification) - it is a binary classification task on census data
|
|
431
520
|
- [**Iris classification**](https://github.com/mljar/mljar-examples/tree/master/Iris_classification) - it is a multiclass classification on Iris flowers data
|
|
432
521
|
- [**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 +641,10 @@ When `model_name` is provided, the markdown includes detailed metrics, fairness
|
|
|
552
641
|
|
|
553
642
|
# Installation
|
|
554
643
|
|
|
644
|
+
For standard MLJAR, optional neural models, and Kumo/TabICLv2 CPU/GPU setup, see the
|
|
645
|
+
[installation guide](docs/docs/install.md). Version `1.4.0rc2` is a release
|
|
646
|
+
candidate that adds optional RealMLP, TabM mini, Kumo and TabICLv2 support.
|
|
647
|
+
|
|
555
648
|
Compatibility:
|
|
556
649
|
- Python `>=3.9`
|
|
557
650
|
- NumPy `>=2.0,<3`
|
|
@@ -562,6 +655,15 @@ From PyPi repository:
|
|
|
562
655
|
pip install mljar-supervised
|
|
563
656
|
```
|
|
564
657
|
|
|
658
|
+
To test the release candidate, select its exact version:
|
|
659
|
+
|
|
660
|
+
```bash
|
|
661
|
+
python -m pip install "mljar-supervised==1.4.0rc2"
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
See the [release notes](https://github.com/mljar/mljar-supervised/blob/master/release.md)
|
|
665
|
+
for changes and optional-model requirements.
|
|
666
|
+
|
|
565
667
|
To install this package with conda run:
|
|
566
668
|
```
|
|
567
669
|
conda install -c conda-forge mljar-supervised
|
mljar_supervised-1.2.2/mljar_supervised.egg-info/PKG-INFO → mljar_supervised-1.4.0rc2/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.0rc2` is a release
|
|
570
|
+
candidate that adds 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 release candidate, select its exact version:
|
|
583
|
+
|
|
584
|
+
```bash
|
|
585
|
+
python -m pip install "mljar-supervised==1.4.0rc2"
|
|
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
|