mljar-supervised 1.1.0__tar.gz → 1.1.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.1.0/mljar_supervised.egg-info → mljar-supervised-1.1.2}/PKG-INFO +54 -45
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/README.md +53 -44
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2/mljar_supervised.egg-info}/PKG-INFO +54 -45
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/mljar_supervised.egg-info/SOURCES.txt +1 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/setup.py +1 -1
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/__init__.py +1 -1
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/baseline.py +6 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/catboost.py +13 -8
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/decision_tree.py +6 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/extra_trees.py +8 -4
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/factory.py +1 -2
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/knn.py +14 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/lightgbm.py +15 -10
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/linear.py +6 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/nn.py +6 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/random_forest.py +8 -4
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/registry.py +1 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/sklearn.py +5 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/xgboost.py +16 -11
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/automl.py +5 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/base_automl.py +18 -11
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/ensemble.py +7 -4
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/fairness/metrics.py +22 -9
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/model_framework.py +9 -6
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/encoding_selector.py +1 -2
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/goldenfeatures_transformer.py +7 -4
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/preprocessing.py +11 -11
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/data_info.py +7 -7
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/hill_climbing.py +1 -2
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/mljar_tuner.py +7 -5
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/optuna/catboost.py +14 -10
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/optuna/extra_trees.py +9 -5
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/optuna/knn.py +6 -5
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/optuna/lightgbm.py +20 -15
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/optuna/nn.py +5 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/optuna/random_forest.py +8 -4
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/optuna/tuner.py +2 -1
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/optuna/xgboost.py +17 -13
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/preprocessing_tuner.py +7 -7
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/__init__.py +2 -1
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/additional_metrics.py +30 -14
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/additional_plots.py +5 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/importance.py +5 -3
- mljar-supervised-1.1.2/supervised/utils/jsonencoder.py +31 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/metric.py +12 -5
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/shap.py +5 -3
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/LICENSE +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/MANIFEST.in +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/mljar_supervised.egg-info/dependency_links.txt +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/mljar_supervised.egg-info/requires.txt +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/mljar_supervised.egg-info/top_level.txt +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/requirements.txt +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/requirements_dev.txt +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/setup.cfg +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/__init__.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/algorithms/algorithm.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/callbacks/__init__.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/callbacks/callback.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/callbacks/callback_list.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/callbacks/early_stopping.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/callbacks/learner_time_constraint.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/callbacks/max_iters_constraint.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/callbacks/metric_logger.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/callbacks/terminate_on_nan.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/callbacks/total_time_constraint.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/exceptions.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/fairness/__init__.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/fairness/optimization.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/fairness/plots.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/fairness/report.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/fairness/utils.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/__init__.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/datetime_transformer.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/eda.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/exclude_missing_target.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/kmeans_transformer.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/label_binarizer.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/label_encoder.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/loo_encoder.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/preprocessing_categorical.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/preprocessing_missing.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/preprocessing_utils.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/scale.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/preprocessing/text_transformer.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/__init__.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/optuna/__init__.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/random_parameters.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/tuner/time_controller.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/automl_plots.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/common.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/config.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/constants.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/data_validation.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/leaderboard_plots.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/learning_curves.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/subsample.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/utils/utils.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/validation/__init__.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/validation/validation_step.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/validation/validator_base.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/validation/validator_custom.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/validation/validator_kfold.py +0 -0
- {mljar-supervised-1.1.0 → mljar-supervised-1.1.2}/supervised/validation/validator_split.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mljar-supervised
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.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.
|
|
@@ -12,12 +12,21 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
12
12
|
[](https://badge.fury.io/py/mljar-supervised)
|
|
13
13
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
14
14
|
[](https://pypi.python.org/pypi/mljar-supervised/)
|
|
15
|
+
|
|
16
|
+
|
|
15
17
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
16
18
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
17
19
|
[](https://pepy.tech/project/mljar-supervised)
|
|
18
20
|
|
|
19
21
|
<p align="center">
|
|
20
|
-
<img
|
|
22
|
+
<img
|
|
23
|
+
alt="mljar AutoML"
|
|
24
|
+
src="https://raw.githubusercontent.com/mljar/mljar-examples/master/media/AutoML_white.png#gh-light-mode-only" width="100%" />
|
|
25
|
+
</p>
|
|
26
|
+
<p align="center">
|
|
27
|
+
<img
|
|
28
|
+
alt="mljar AutoML"
|
|
29
|
+
src="https://raw.githubusercontent.com/mljar/mljar-examples/master/media/AutoML_black.png#gh-dark-mode-only" width="100%" />
|
|
21
30
|
</p>
|
|
22
31
|
|
|
23
32
|
---
|
|
@@ -30,7 +39,7 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
30
39
|
|
|
31
40
|
|
|
32
41
|
<p align="center">
|
|
33
|
-
<img src="https://
|
|
42
|
+
<img src="https://raw.githubusercontent.com/mljar/mljar-examples/master/media/pipeline_AutoML.png" width="100%" />
|
|
34
43
|
</p>
|
|
35
44
|
|
|
36
45
|
|
|
@@ -59,35 +68,35 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
59
68
|
|
|
60
69
|
# Automated Machine Learning
|
|
61
70
|
|
|
62
|
-
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
|
|
71
|
+
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).
|
|
63
72
|
|
|
64
73
|
The `mljar-supervised` will help you with:
|
|
65
74
|
- explaining and understanding your data (Automatic Exploratory Data Analysis),
|
|
66
75
|
- trying many different machine learning models (Algorithm Selection and Hyper-Parameters tuning),
|
|
67
76
|
- creating Markdown reports from analysis with details about all models (Automatic-Documentation),
|
|
68
|
-
- saving, re-running and loading the analysis and ML models.
|
|
77
|
+
- saving, re-running, and loading the analysis and ML models.
|
|
69
78
|
|
|
70
79
|
It has four built-in modes of work:
|
|
71
|
-
- `Explain` mode, which is ideal for explaining and understanding the data, with many data explanations, like decision trees visualization, linear models coefficients display, permutation
|
|
80
|
+
- `Explain` mode, which is ideal for explaining and understanding the data, with many data explanations, like decision trees visualization, linear models coefficients display, permutation importance, and SHAP explanations of data,
|
|
72
81
|
- `Perform` for building ML pipelines to use in production,
|
|
73
|
-
- `Compete` mode that trains highly-tuned ML models with ensembling and stacking, with
|
|
74
|
-
- `Optuna` mode
|
|
82
|
+
- `Compete` mode that trains highly-tuned ML models with ensembling and stacking, with the purpose to use in ML competitions.
|
|
83
|
+
- `Optuna` mode can be used to search for highly-tuned ML models should be used when the performance is the most important, and computation time is not limited (it is available from version `0.10.0`)
|
|
75
84
|
|
|
76
85
|
Of course, you can further customize the details of each `mode` to meet the requirements.
|
|
77
86
|
|
|
78
87
|
## What's good in it?
|
|
79
88
|
|
|
80
|
-
- It
|
|
81
|
-
- It can compute Ensemble based on greedy algorithm from [Caruana paper](http://www.cs.cornell.edu/~alexn/papers/shotgun.icml04.revised.rev2.pdf).
|
|
82
|
-
- It can stack models to build level 2 ensemble (available in `Compete` mode or after setting `stack_models` parameter).
|
|
83
|
-
- It can do features preprocessing, like
|
|
84
|
-
- It can do advanced features engineering, like
|
|
85
|
-
- It can tune hyper-parameters with `not-so-random-search` algorithm (random-search over defined set of values) and hill climbing to fine-tune final models.
|
|
86
|
-
- It can compute the `Baseline` for your data
|
|
89
|
+
- It uses many algorithms: `Baseline`, `Linear`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Networks`, and `Nearest Neighbors`.
|
|
90
|
+
- It can compute Ensemble based on a greedy algorithm from [Caruana paper](http://www.cs.cornell.edu/~alexn/papers/shotgun.icml04.revised.rev2.pdf).
|
|
91
|
+
- It can stack models to build a level 2 ensemble (available in `Compete` mode or after setting the `stack_models` parameter).
|
|
92
|
+
- It can do features preprocessing, like missing values imputation and converting categoricals. What is more, it can also handle target values preprocessing.
|
|
93
|
+
- It can do advanced features engineering, like [Golden Features](https://supervised.mljar.com/features/golden_features/), [Features Selection](https://supervised.mljar.com/features/features_selection/), Text and Time Transformations.
|
|
94
|
+
- It can tune hyper-parameters with a `not-so-random-search` algorithm (random-search over a defined set of values) and hill climbing to fine-tune final models.
|
|
95
|
+
- It can compute the `Baseline` for your data so that you will know if you need Machine Learning or not!
|
|
87
96
|
- 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.
|
|
88
|
-
- The `mljar-supervised`
|
|
89
|
-
- It cares about 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 `explain_level` parameter).
|
|
90
|
-
- 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.
|
|
97
|
+
- 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.
|
|
98
|
+
- 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).
|
|
99
|
+
- 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.
|
|
91
100
|
|
|
92
101
|
<p align="center">
|
|
93
102
|
<img src="https://raw.githubusercontent.com/mljar/visual-identity/main/media/infograph.png" width="100%" />
|
|
@@ -95,7 +104,7 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
95
104
|
|
|
96
105
|
# AutoML Web App with User Interface
|
|
97
106
|
|
|
98
|
-
We created a Web App with GUI so you
|
|
107
|
+
We created a Web App with GUI, so you don't need to write any code 🐍. Just upload your data. Please check the Web App at [github.com/mljar/automl-app](https://github.com/mljar/automl-app). You can run this Web App locally on your computer, so your data is safe and secure :cat:
|
|
99
108
|
|
|
100
109
|
<kbd>
|
|
101
110
|
<img src="https://github.com/mljar/automl-app/blob/main/media/web-app.gif" alt="AutoML training in Web App"></img>
|
|
@@ -105,13 +114,13 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
105
114
|
|
|
106
115
|
## The AutoML Report
|
|
107
116
|
|
|
108
|
-
The report from running AutoML will contain the table with
|
|
117
|
+
The report from running AutoML will contain the table with information about each model score and the time needed to train the model. There is a link for each model, which you can click to see the model's details. The performance of all ML models is presented as scatter and box plots so you can visually inspect which algorithms perform the best :trophy:.
|
|
109
118
|
|
|
110
119
|

|
|
111
120
|
|
|
112
121
|
## The `Decision Tree` Report
|
|
113
122
|
|
|
114
|
-
The example for `Decision Tree` summary with trees visualization. For classification tasks additional metrics are provided:
|
|
123
|
+
The example for `Decision Tree` summary with trees visualization. For classification tasks, additional metrics are provided:
|
|
115
124
|
- confusion matrix
|
|
116
125
|
- threshold (optimized in the case of binary classification task)
|
|
117
126
|
- F1 score
|
|
@@ -129,7 +138,7 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
129
138
|
|
|
130
139
|
## Available Modes
|
|
131
140
|
|
|
132
|
-
In the [docs](https://supervised.mljar.com/features/modes/) you can find details about AutoML modes are presented in the table
|
|
141
|
+
In the [docs](https://supervised.mljar.com/features/modes/) you can find details about AutoML modes that are presented in the table.
|
|
133
142
|
|
|
134
143
|
<p align="center">
|
|
135
144
|
<img src="https://raw.githubusercontent.com/mljar/visual-identity/main/media/mljar_modes.png" width="100%" />
|
|
@@ -143,7 +152,7 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
143
152
|
|
|
144
153
|
It is aimed to be used when the user wants to explain and understand the data.
|
|
145
154
|
- It is using 75%/25% train/test split.
|
|
146
|
-
- It
|
|
155
|
+
- It uses: `Baseline`, `Linear`, `Decision Tree`, `Random Forest`, `Xgboost`, `Neural Network' algorithms, and ensemble.
|
|
147
156
|
- It has full explanations: learning curves, importance plots, and SHAP plots.
|
|
148
157
|
|
|
149
158
|
### Perform
|
|
@@ -153,8 +162,8 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
153
162
|
```
|
|
154
163
|
|
|
155
164
|
It should be used when the user wants to train a model that will be used in real-life use cases.
|
|
156
|
-
- It
|
|
157
|
-
- It
|
|
165
|
+
- It uses a 5-fold CV.
|
|
166
|
+
- It uses: `Linear`, `Random Forest`, `LightGBM`, `Xgboost`, `CatBoost`, and `Neural Network`. It uses ensembling.
|
|
158
167
|
- It has learning curves and importance plots in reports.
|
|
159
168
|
|
|
160
169
|
### Compete
|
|
@@ -164,8 +173,8 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
164
173
|
```
|
|
165
174
|
|
|
166
175
|
It should be used for machine learning competitions.
|
|
167
|
-
- It adapts the validation strategy depending on dataset size and `total_time_limit`. It can be: train/test split (80/20), 5-fold CV or 10-fold CV.
|
|
168
|
-
- It is using: `Linear`, `Decision Tree`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Network
|
|
176
|
+
- 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.
|
|
177
|
+
- It is using: `Linear`, `Decision Tree`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Network`, and `Nearest Neighbors`. It uses ensemble and **stacking**.
|
|
169
178
|
- It has only learning curves in the reports.
|
|
170
179
|
|
|
171
180
|
### Optuna
|
|
@@ -175,9 +184,9 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
175
184
|
```
|
|
176
185
|
|
|
177
186
|
It should be used when the performance is the most important and time is not limited.
|
|
178
|
-
- It
|
|
179
|
-
- It
|
|
180
|
-
- It
|
|
187
|
+
- It uses a 10-fold CV
|
|
188
|
+
- It uses: `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, and `CatBoost`. Those algorithms are tuned by `Optuna` framework for `optuna_time_budget` seconds, each. Algorithms are tuned with original data, without advanced feature engineering.
|
|
189
|
+
- It uses advanced feature engineering, stacking and ensembling. The hyperparameters found for original data are reused with those steps.
|
|
181
190
|
- It produces learning curves in the reports.
|
|
182
191
|
|
|
183
192
|
|
|
@@ -208,30 +217,30 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
208
217
|
|
|
209
218
|
### Why do you automatically save all models?
|
|
210
219
|
|
|
211
|
-
All models are automatically saved to be able to restore the training after interruption. For example, you are training AutoML for 48 hours, and after 47 hours there is some unexpected interruption. In MLJAR AutoML you just call the same training code after the interruption and AutoML reloads already trained models and
|
|
220
|
+
All models are automatically saved to be able to restore the training after interruption. For example, you are training AutoML for 48 hours, and after 47 hours, there is some unexpected interruption. In MLJAR AutoML you just call the same training code after the interruption and AutoML reloads already trained models and finishes the training.
|
|
212
221
|
|
|
213
222
|
## Supported evaluation metrics (`eval_metric` argument in `AutoML()`)
|
|
214
223
|
|
|
215
224
|
- for binary classification: `logloss`, `auc`, `f1`, `average_precision`, `accuracy`- default is `logloss`
|
|
216
|
-
- for
|
|
225
|
+
- for multiclass classification: `logloss`, `f1`, `accuracy` - default is `logloss`
|
|
217
226
|
- for regression: `rmse`, `mse`, `mae`, `r2`, `mape`, `spearman`, `pearson` - default is `rmse`
|
|
218
227
|
|
|
219
|
-
If you don't find `eval_metric` that you need, please add a new issue. We will add it.
|
|
228
|
+
If you don't find the `eval_metric` that you need, please add a new issue. We will add it.
|
|
220
229
|
|
|
221
230
|
|
|
222
231
|
## Fairness Aware Training
|
|
223
232
|
|
|
224
|
-
Starting from version `1.0.0` AutoML can optimize Machine Learning
|
|
233
|
+
Starting from version `1.0.0` AutoML can optimize the Machine Learning pipeline with sensitive features. There are the following fairness related arguments in the AutoML constructor:
|
|
225
234
|
- `fairness_metric` - metric which will be used to decide if the model is fair,
|
|
226
235
|
- `fairness_threshold` - threshold used in decision about model fairness,
|
|
227
236
|
- `privileged_groups` - privileged groups used in fairness metrics computation,
|
|
228
237
|
- `underprivileged_groups` - underprivileged groups used in fairness metrics computation.
|
|
229
238
|
|
|
230
|
-
The `fit()` method accepts `sensitive_features`. When sensitive features are passed to AutoML, the best model will be selected among fair models only. In the AutoML reports additional information about fairness metrics will be added. The MLJAR AutoML supports two methods for bias mitigation:
|
|
239
|
+
The `fit()` method accepts `sensitive_features`. When sensitive features are passed to AutoML, the best model will be selected among fair models only. In the AutoML reports, additional information about fairness metrics will be added. The MLJAR AutoML supports two methods for bias mitigation:
|
|
231
240
|
- Sample Weighting - assigns weights to samples to treat samples equally,
|
|
232
|
-
- Smart Grid Search - similar to Sample Weighting where different weights are checked to optimize fairness metric.
|
|
241
|
+
- Smart Grid Search - similar to Sample Weighting, where different weights are checked to optimize fairness metric.
|
|
233
242
|
|
|
234
|
-
The fair ML
|
|
243
|
+
The fair ML building can be used with all algorithms, including `Ensemble` and `Stacked Ensemble`. We support three Machine Learning tasks:
|
|
235
244
|
- binary classification,
|
|
236
245
|
- mutliclass classification,
|
|
237
246
|
- regression.
|
|
@@ -388,8 +397,8 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
388
397
|
# FAQ
|
|
389
398
|
|
|
390
399
|
<details><summary>What method is used for hyperparameters optimization?</summary>
|
|
391
|
-
- For modes: `Explain`, `Perform
|
|
392
|
-
- For mode: `Optuna` the Optuna framework is used. It
|
|
400
|
+
- For modes: `Explain`, `Perform`, and `Compete` there is used a random search method combined with hill climbing. In this approach, all checked models are saved and used for building Ensemble.
|
|
401
|
+
- For mode: `Optuna` the Optuna framework is used. It uses using TPE sampler for tuning. Models checked during the Optuna hyperparameters search are not saved, only the best model is saved (the final model from tuning). You can check the details about checked hyperparameters from optuna by checking study files in the `optuna` directory in your AutoML `results_path`.
|
|
393
402
|
</details>
|
|
394
403
|
|
|
395
404
|
<details><summary>How to save and load AutoML?</summary>
|
|
@@ -511,11 +520,11 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
511
520
|
# Demo
|
|
512
521
|
|
|
513
522
|
In the below demo GIF you will see:
|
|
514
|
-
- MLJAR AutoML trained in Jupyter Notebook on
|
|
523
|
+
- MLJAR AutoML trained in Jupyter Notebook on the Titanic dataset
|
|
515
524
|
- overview of created files
|
|
516
|
-
- showcase of selected plots created during AutoML training
|
|
525
|
+
- a showcase of selected plots created during AutoML training
|
|
517
526
|
- algorithm comparison report along with their plots
|
|
518
|
-
- example of README file and
|
|
527
|
+
- example of README file and CSV file with results
|
|
519
528
|
|
|
520
529
|

|
|
521
530
|
|
|
@@ -532,7 +541,7 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
532
541
|
|
|
533
542
|
Would you like to cite MLJAR? Great! :)
|
|
534
543
|
|
|
535
|
-
You can cite MLJAR as
|
|
544
|
+
You can cite MLJAR as follows:
|
|
536
545
|
|
|
537
546
|
```
|
|
538
547
|
@misc{mljar,
|
|
@@ -545,7 +554,7 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
545
554
|
}
|
|
546
555
|
```
|
|
547
556
|
|
|
548
|
-
Would love to hear from you how have you used MLJAR AutoML in your project.
|
|
557
|
+
Would love to hear from you about how have you used MLJAR AutoML in your project.
|
|
549
558
|
Please feel free to let us know at
|
|
550
559
|

|
|
551
560
|
|
|
@@ -563,7 +572,7 @@ Description: # MLJAR Automated Machine Learning for Humans
|
|
|
563
572
|
<img src="https://github.com/mljar/mljar-examples/blob/master/media/large_logo.png" width="314" />
|
|
564
573
|
</p>
|
|
565
574
|
|
|
566
|
-
The `mljar-supervised` is an open-source project created by [MLJAR](https://mljar.com). We care about ease of use in
|
|
575
|
+
The `mljar-supervised` is an open-source project created by [MLJAR](https://mljar.com). We care about ease of use in Machine Learning.
|
|
567
576
|
The [mljar.com](https://mljar.com) provides a beautiful and simple user interface for building machine learning models.
|
|
568
577
|
|
|
569
578
|
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
|
|
@@ -4,12 +4,21 @@
|
|
|
4
4
|
[](https://badge.fury.io/py/mljar-supervised)
|
|
5
5
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
6
6
|
[](https://pypi.python.org/pypi/mljar-supervised/)
|
|
7
|
+
|
|
8
|
+
|
|
7
9
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
8
10
|
[](https://anaconda.org/conda-forge/mljar-supervised)
|
|
9
11
|
[](https://pepy.tech/project/mljar-supervised)
|
|
10
12
|
|
|
11
13
|
<p align="center">
|
|
12
|
-
<img
|
|
14
|
+
<img
|
|
15
|
+
alt="mljar AutoML"
|
|
16
|
+
src="https://raw.githubusercontent.com/mljar/mljar-examples/master/media/AutoML_white.png#gh-light-mode-only" width="100%" />
|
|
17
|
+
</p>
|
|
18
|
+
<p align="center">
|
|
19
|
+
<img
|
|
20
|
+
alt="mljar AutoML"
|
|
21
|
+
src="https://raw.githubusercontent.com/mljar/mljar-examples/master/media/AutoML_black.png#gh-dark-mode-only" width="100%" />
|
|
13
22
|
</p>
|
|
14
23
|
|
|
15
24
|
---
|
|
@@ -22,7 +31,7 @@
|
|
|
22
31
|
|
|
23
32
|
|
|
24
33
|
<p align="center">
|
|
25
|
-
<img src="https://
|
|
34
|
+
<img src="https://raw.githubusercontent.com/mljar/mljar-examples/master/media/pipeline_AutoML.png" width="100%" />
|
|
26
35
|
</p>
|
|
27
36
|
|
|
28
37
|
|
|
@@ -51,35 +60,35 @@
|
|
|
51
60
|
|
|
52
61
|
# Automated Machine Learning
|
|
53
62
|
|
|
54
|
-
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
|
|
63
|
+
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).
|
|
55
64
|
|
|
56
65
|
The `mljar-supervised` will help you with:
|
|
57
66
|
- explaining and understanding your data (Automatic Exploratory Data Analysis),
|
|
58
67
|
- trying many different machine learning models (Algorithm Selection and Hyper-Parameters tuning),
|
|
59
68
|
- creating Markdown reports from analysis with details about all models (Automatic-Documentation),
|
|
60
|
-
- saving, re-running and loading the analysis and ML models.
|
|
69
|
+
- saving, re-running, and loading the analysis and ML models.
|
|
61
70
|
|
|
62
71
|
It has four built-in modes of work:
|
|
63
|
-
- `Explain` mode, which is ideal for explaining and understanding the data, with many data explanations, like decision trees visualization, linear models coefficients display, permutation
|
|
72
|
+
- `Explain` mode, which is ideal for explaining and understanding the data, with many data explanations, like decision trees visualization, linear models coefficients display, permutation importance, and SHAP explanations of data,
|
|
64
73
|
- `Perform` for building ML pipelines to use in production,
|
|
65
|
-
- `Compete` mode that trains highly-tuned ML models with ensembling and stacking, with
|
|
66
|
-
- `Optuna` mode
|
|
74
|
+
- `Compete` mode that trains highly-tuned ML models with ensembling and stacking, with the purpose to use in ML competitions.
|
|
75
|
+
- `Optuna` mode can be used to search for highly-tuned ML models should be used when the performance is the most important, and computation time is not limited (it is available from version `0.10.0`)
|
|
67
76
|
|
|
68
77
|
Of course, you can further customize the details of each `mode` to meet the requirements.
|
|
69
78
|
|
|
70
79
|
## What's good in it?
|
|
71
80
|
|
|
72
|
-
- It
|
|
73
|
-
- It can compute Ensemble based on greedy algorithm from [Caruana paper](http://www.cs.cornell.edu/~alexn/papers/shotgun.icml04.revised.rev2.pdf).
|
|
74
|
-
- It can stack models to build level 2 ensemble (available in `Compete` mode or after setting `stack_models` parameter).
|
|
75
|
-
- It can do features preprocessing, like
|
|
76
|
-
- It can do advanced features engineering, like
|
|
77
|
-
- It can tune hyper-parameters with `not-so-random-search` algorithm (random-search over defined set of values) and hill climbing to fine-tune final models.
|
|
78
|
-
- It can compute the `Baseline` for your data
|
|
81
|
+
- It uses many algorithms: `Baseline`, `Linear`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Networks`, and `Nearest Neighbors`.
|
|
82
|
+
- It can compute Ensemble based on a greedy algorithm from [Caruana paper](http://www.cs.cornell.edu/~alexn/papers/shotgun.icml04.revised.rev2.pdf).
|
|
83
|
+
- It can stack models to build a level 2 ensemble (available in `Compete` mode or after setting the `stack_models` parameter).
|
|
84
|
+
- It can do features preprocessing, like missing values imputation and converting categoricals. What is more, it can also handle target values preprocessing.
|
|
85
|
+
- It can do advanced features engineering, like [Golden Features](https://supervised.mljar.com/features/golden_features/), [Features Selection](https://supervised.mljar.com/features/features_selection/), Text and Time Transformations.
|
|
86
|
+
- It can tune hyper-parameters with a `not-so-random-search` algorithm (random-search over a defined set of values) and hill climbing to fine-tune final models.
|
|
87
|
+
- It can compute the `Baseline` for your data so that you will know if you need Machine Learning or not!
|
|
79
88
|
- 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.
|
|
80
|
-
- The `mljar-supervised`
|
|
81
|
-
- It cares about 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 `explain_level` parameter).
|
|
82
|
-
- 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.
|
|
89
|
+
- 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.
|
|
90
|
+
- 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).
|
|
91
|
+
- 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.
|
|
83
92
|
|
|
84
93
|
<p align="center">
|
|
85
94
|
<img src="https://raw.githubusercontent.com/mljar/visual-identity/main/media/infograph.png" width="100%" />
|
|
@@ -87,7 +96,7 @@ Of course, you can further customize the details of each `mode` to meet the requ
|
|
|
87
96
|
|
|
88
97
|
# AutoML Web App with User Interface
|
|
89
98
|
|
|
90
|
-
We created a Web App with GUI so you
|
|
99
|
+
We created a Web App with GUI, so you don't need to write any code 🐍. Just upload your data. Please check the Web App at [github.com/mljar/automl-app](https://github.com/mljar/automl-app). You can run this Web App locally on your computer, so your data is safe and secure :cat:
|
|
91
100
|
|
|
92
101
|
<kbd>
|
|
93
102
|
<img src="https://github.com/mljar/automl-app/blob/main/media/web-app.gif" alt="AutoML training in Web App"></img>
|
|
@@ -97,13 +106,13 @@ We created a Web App with GUI so you dont need to write any code 🐍. Just uplo
|
|
|
97
106
|
|
|
98
107
|
## The AutoML Report
|
|
99
108
|
|
|
100
|
-
The report from running AutoML will contain the table with
|
|
109
|
+
The report from running AutoML will contain the table with information about each model score and the time needed to train the model. There is a link for each model, which you can click to see the model's details. The performance of all ML models is presented as scatter and box plots so you can visually inspect which algorithms perform the best :trophy:.
|
|
101
110
|
|
|
102
111
|

|
|
103
112
|
|
|
104
113
|
## The `Decision Tree` Report
|
|
105
114
|
|
|
106
|
-
The example for `Decision Tree` summary with trees visualization. For classification tasks additional metrics are provided:
|
|
115
|
+
The example for `Decision Tree` summary with trees visualization. For classification tasks, additional metrics are provided:
|
|
107
116
|
- confusion matrix
|
|
108
117
|
- threshold (optimized in the case of binary classification task)
|
|
109
118
|
- F1 score
|
|
@@ -121,7 +130,7 @@ The example for `LightGBM` summary:
|
|
|
121
130
|
|
|
122
131
|
## Available Modes
|
|
123
132
|
|
|
124
|
-
In the [docs](https://supervised.mljar.com/features/modes/) you can find details about AutoML modes are presented in the table
|
|
133
|
+
In the [docs](https://supervised.mljar.com/features/modes/) you can find details about AutoML modes that are presented in the table.
|
|
125
134
|
|
|
126
135
|
<p align="center">
|
|
127
136
|
<img src="https://raw.githubusercontent.com/mljar/visual-identity/main/media/mljar_modes.png" width="100%" />
|
|
@@ -135,7 +144,7 @@ automl = AutoML(mode="Explain")
|
|
|
135
144
|
|
|
136
145
|
It is aimed to be used when the user wants to explain and understand the data.
|
|
137
146
|
- It is using 75%/25% train/test split.
|
|
138
|
-
- It
|
|
147
|
+
- It uses: `Baseline`, `Linear`, `Decision Tree`, `Random Forest`, `Xgboost`, `Neural Network' algorithms, and ensemble.
|
|
139
148
|
- It has full explanations: learning curves, importance plots, and SHAP plots.
|
|
140
149
|
|
|
141
150
|
### Perform
|
|
@@ -145,8 +154,8 @@ automl = AutoML(mode="Perform")
|
|
|
145
154
|
```
|
|
146
155
|
|
|
147
156
|
It should be used when the user wants to train a model that will be used in real-life use cases.
|
|
148
|
-
- It
|
|
149
|
-
- It
|
|
157
|
+
- It uses a 5-fold CV.
|
|
158
|
+
- It uses: `Linear`, `Random Forest`, `LightGBM`, `Xgboost`, `CatBoost`, and `Neural Network`. It uses ensembling.
|
|
150
159
|
- It has learning curves and importance plots in reports.
|
|
151
160
|
|
|
152
161
|
### Compete
|
|
@@ -156,8 +165,8 @@ automl = AutoML(mode="Compete")
|
|
|
156
165
|
```
|
|
157
166
|
|
|
158
167
|
It should be used for machine learning competitions.
|
|
159
|
-
- It adapts the validation strategy depending on dataset size and `total_time_limit`. It can be: train/test split (80/20), 5-fold CV or 10-fold CV.
|
|
160
|
-
- It is using: `Linear`, `Decision Tree`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Network
|
|
168
|
+
- 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.
|
|
169
|
+
- It is using: `Linear`, `Decision Tree`, `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, `CatBoost`, `Neural Network`, and `Nearest Neighbors`. It uses ensemble and **stacking**.
|
|
161
170
|
- It has only learning curves in the reports.
|
|
162
171
|
|
|
163
172
|
### Optuna
|
|
@@ -167,9 +176,9 @@ automl = AutoML(mode="Optuna", optuna_time_budget=3600)
|
|
|
167
176
|
```
|
|
168
177
|
|
|
169
178
|
It should be used when the performance is the most important and time is not limited.
|
|
170
|
-
- It
|
|
171
|
-
- It
|
|
172
|
-
- It
|
|
179
|
+
- It uses a 10-fold CV
|
|
180
|
+
- It uses: `Random Forest`, `Extra Trees`, `LightGBM`, `Xgboost`, and `CatBoost`. Those algorithms are tuned by `Optuna` framework for `optuna_time_budget` seconds, each. Algorithms are tuned with original data, without advanced feature engineering.
|
|
181
|
+
- It uses advanced feature engineering, stacking and ensembling. The hyperparameters found for original data are reused with those steps.
|
|
173
182
|
- It produces learning curves in the reports.
|
|
174
183
|
|
|
175
184
|
|
|
@@ -200,30 +209,30 @@ The AutoML automatically loads models from the `results_path` directory. If you
|
|
|
200
209
|
|
|
201
210
|
### Why do you automatically save all models?
|
|
202
211
|
|
|
203
|
-
All models are automatically saved to be able to restore the training after interruption. For example, you are training AutoML for 48 hours, and after 47 hours there is some unexpected interruption. In MLJAR AutoML you just call the same training code after the interruption and AutoML reloads already trained models and
|
|
212
|
+
All models are automatically saved to be able to restore the training after interruption. For example, you are training AutoML for 48 hours, and after 47 hours, there is some unexpected interruption. In MLJAR AutoML you just call the same training code after the interruption and AutoML reloads already trained models and finishes the training.
|
|
204
213
|
|
|
205
214
|
## Supported evaluation metrics (`eval_metric` argument in `AutoML()`)
|
|
206
215
|
|
|
207
216
|
- for binary classification: `logloss`, `auc`, `f1`, `average_precision`, `accuracy`- default is `logloss`
|
|
208
|
-
- for
|
|
217
|
+
- for multiclass classification: `logloss`, `f1`, `accuracy` - default is `logloss`
|
|
209
218
|
- for regression: `rmse`, `mse`, `mae`, `r2`, `mape`, `spearman`, `pearson` - default is `rmse`
|
|
210
219
|
|
|
211
|
-
If you don't find `eval_metric` that you need, please add a new issue. We will add it.
|
|
220
|
+
If you don't find the `eval_metric` that you need, please add a new issue. We will add it.
|
|
212
221
|
|
|
213
222
|
|
|
214
223
|
## Fairness Aware Training
|
|
215
224
|
|
|
216
|
-
Starting from version `1.0.0` AutoML can optimize Machine Learning
|
|
225
|
+
Starting from version `1.0.0` AutoML can optimize the Machine Learning pipeline with sensitive features. There are the following fairness related arguments in the AutoML constructor:
|
|
217
226
|
- `fairness_metric` - metric which will be used to decide if the model is fair,
|
|
218
227
|
- `fairness_threshold` - threshold used in decision about model fairness,
|
|
219
228
|
- `privileged_groups` - privileged groups used in fairness metrics computation,
|
|
220
229
|
- `underprivileged_groups` - underprivileged groups used in fairness metrics computation.
|
|
221
230
|
|
|
222
|
-
The `fit()` method accepts `sensitive_features`. When sensitive features are passed to AutoML, the best model will be selected among fair models only. In the AutoML reports additional information about fairness metrics will be added. The MLJAR AutoML supports two methods for bias mitigation:
|
|
231
|
+
The `fit()` method accepts `sensitive_features`. When sensitive features are passed to AutoML, the best model will be selected among fair models only. In the AutoML reports, additional information about fairness metrics will be added. The MLJAR AutoML supports two methods for bias mitigation:
|
|
223
232
|
- Sample Weighting - assigns weights to samples to treat samples equally,
|
|
224
|
-
- Smart Grid Search - similar to Sample Weighting where different weights are checked to optimize fairness metric.
|
|
233
|
+
- Smart Grid Search - similar to Sample Weighting, where different weights are checked to optimize fairness metric.
|
|
225
234
|
|
|
226
|
-
The fair ML
|
|
235
|
+
The fair ML building can be used with all algorithms, including `Ensemble` and `Stacked Ensemble`. We support three Machine Learning tasks:
|
|
227
236
|
- binary classification,
|
|
228
237
|
- mutliclass classification,
|
|
229
238
|
- regression.
|
|
@@ -380,8 +389,8 @@ print("Test MSE:", mean_squared_error(y_test, predictions))
|
|
|
380
389
|
# FAQ
|
|
381
390
|
|
|
382
391
|
<details><summary>What method is used for hyperparameters optimization?</summary>
|
|
383
|
-
- For modes: `Explain`, `Perform
|
|
384
|
-
- For mode: `Optuna` the Optuna framework is used. It
|
|
392
|
+
- For modes: `Explain`, `Perform`, and `Compete` there is used a random search method combined with hill climbing. In this approach, all checked models are saved and used for building Ensemble.
|
|
393
|
+
- For mode: `Optuna` the Optuna framework is used. It uses using TPE sampler for tuning. Models checked during the Optuna hyperparameters search are not saved, only the best model is saved (the final model from tuning). You can check the details about checked hyperparameters from optuna by checking study files in the `optuna` directory in your AutoML `results_path`.
|
|
385
394
|
</details>
|
|
386
395
|
|
|
387
396
|
<details><summary>How to save and load AutoML?</summary>
|
|
@@ -503,11 +512,11 @@ pip install -q -U git+https://github.com/mljar/mljar-supervised.git@master
|
|
|
503
512
|
# Demo
|
|
504
513
|
|
|
505
514
|
In the below demo GIF you will see:
|
|
506
|
-
- MLJAR AutoML trained in Jupyter Notebook on
|
|
515
|
+
- MLJAR AutoML trained in Jupyter Notebook on the Titanic dataset
|
|
507
516
|
- overview of created files
|
|
508
|
-
- showcase of selected plots created during AutoML training
|
|
517
|
+
- a showcase of selected plots created during AutoML training
|
|
509
518
|
- algorithm comparison report along with their plots
|
|
510
|
-
- example of README file and
|
|
519
|
+
- example of README file and CSV file with results
|
|
511
520
|
|
|
512
521
|

|
|
513
522
|
|
|
@@ -524,7 +533,7 @@ To get started take a look at our [Contribution Guide](https://supervised.mljar.
|
|
|
524
533
|
|
|
525
534
|
Would you like to cite MLJAR? Great! :)
|
|
526
535
|
|
|
527
|
-
You can cite MLJAR as
|
|
536
|
+
You can cite MLJAR as follows:
|
|
528
537
|
|
|
529
538
|
```
|
|
530
539
|
@misc{mljar,
|
|
@@ -537,7 +546,7 @@ You can cite MLJAR as following:
|
|
|
537
546
|
}
|
|
538
547
|
```
|
|
539
548
|
|
|
540
|
-
Would love to hear from you how have you used MLJAR AutoML in your project.
|
|
549
|
+
Would love to hear from you about how have you used MLJAR AutoML in your project.
|
|
541
550
|
Please feel free to let us know at
|
|
542
551
|

|
|
543
552
|
|
|
@@ -555,5 +564,5 @@ Looking for commercial support? Do you need new feature implementation? Please c
|
|
|
555
564
|
<img src="https://github.com/mljar/mljar-examples/blob/master/media/large_logo.png" width="314" />
|
|
556
565
|
</p>
|
|
557
566
|
|
|
558
|
-
The `mljar-supervised` is an open-source project created by [MLJAR](https://mljar.com). We care about ease of use in
|
|
567
|
+
The `mljar-supervised` is an open-source project created by [MLJAR](https://mljar.com). We care about ease of use in Machine Learning.
|
|
559
568
|
The [mljar.com](https://mljar.com) provides a beautiful and simple user interface for building machine learning models.
|