Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add neural networks and bug fixes #79

Merged
merged 42 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
501f4c0
fix kfold and reader seeds
MikhailKuz Feb 22, 2023
e6dd5c0
fix deprecated series append
MikhailKuz Feb 22, 2023
61fb71f
add FillnaMean and QuantileTransformer
MikhailKuz Feb 22, 2023
bcb56db
fix verbose
MikhailKuz Feb 22, 2023
0530950
add debug option in preset
MikhailKuz Feb 22, 2023
b197395
fix weight in metric func
MikhailKuz Feb 22, 2023
e2a77f6
add grad clipping
MikhailKuz Feb 22, 2023
7e0af90
refactor poolers
MikhailKuz Feb 22, 2023
12f2ac6
add nn feature pipeline
MikhailKuz Feb 22, 2023
6402eeb
add linear with logit losses
MikhailKuz Feb 22, 2023
07245a0
add neural networks
MikhailKuz Feb 22, 2023
2566345
add DLOptunaTuner
MikhailKuz Feb 22, 2023
d221a58
add nn in tabular preset
MikhailKuz Feb 22, 2023
cf13ec2
add nn in text preset
MikhailKuz Feb 22, 2023
a162b57
fix verbose
MikhailKuz Feb 22, 2023
2b79b8f
update modules rst
MikhailKuz Feb 22, 2023
916551e
add nn tutorial
MikhailKuz Feb 22, 2023
6536af5
add tps nn solution link
MikhailKuz Feb 22, 2023
bff775e
update lib version
MikhailKuz Feb 22, 2023
efd5f6c
refactor
MikhailKuz Feb 28, 2023
95351d2
add tests
MikhailKuz Feb 28, 2023
dbf64d6
add verbose_bar option
MikhailKuz Mar 2, 2023
f19c9fd
add default_nn_params_v2
MikhailKuz Mar 9, 2023
75aad49
reformat
MikhailKuz Mar 9, 2023
d2c066e
fix cb custom multitask metric
MikhailKuz Mar 9, 2023
92d0a54
fix links
MikhailKuz Mar 9, 2023
8fc0480
add nn in TabularUtilizedAutoML
MikhailKuz Mar 13, 2023
52a13f8
undo logic on params
MikhailKuz Mar 14, 2023
8388022
reformat tutorial
MikhailKuz Mar 15, 2023
4174dd8
undo version
MikhailKuz Mar 15, 2023
e564b78
add freeze_defaults param
MikhailKuz Mar 15, 2023
0e29fbe
add docs
MikhailKuz Mar 15, 2023
408014c
add params on input
MikhailKuz Mar 15, 2023
ccd7587
fix mapping when cols are sorted right
MikhailKuz Mar 15, 2023
bd4c0ea
remove unused code
MikhailKuz Mar 15, 2023
746a418
merge with ts pull request
MikhailKuz Mar 16, 2023
bf60b0f
add zero_grad to the end of loop
MikhailKuz Mar 16, 2023
5535751
fix type bug
MikhailKuz Mar 16, 2023
ab140c1
add output
MikhailKuz Mar 16, 2023
4154e60
undo type fix
MikhailKuz Mar 16, 2023
5d47c1e
reformat
MikhailKuz Mar 16, 2023
a2ee6af
upgrade version
MikhailKuz Mar 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
additional_dependencies: ["click==8.0.4"]

- repo: https://github.com/PyCQA/isort
rev: 5.7.0
rev: 5.12.0
hooks:
- id: isort
args: ["--settings-path pyproject.toml"]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ LighAutoML framework has a lot of ready-to-use parts and extensive customization
- [`Tutorial_6_custom_pipeline.ipynb`](https://colab.research.google.com/github/AILab-MLTools/LightAutoML/blob/master/examples/tutorials/Tutorial_6_custom_pipeline.ipynb) - shows how to create your own pipeline from specified blocks: pipelines for feature generation and feature selection, ML algorithms, hyperparameter optimization etc.
- [`Tutorial_7_ICE_and_PDP_interpretation.ipynb`](https://colab.research.google.com/github/AILab-MLTools/LightAutoML/blob/master/examples/tutorials/Tutorial_7_ICE_and_PDP_interpretation.ipynb) - shows how to obtain local and global interpretation of model results using ICE and PDP approaches.
- [`Tutorial_8_CV_preset.ipynb`](https://colab.research.google.com/github/AILab-MLTools/LightAutoML/blob/master/examples/tutorials/Tutorial_8_CV_preset.ipynb) - example of using TabularCVAutoML preset in CV multi-class classification task.
- [`Tutorial_9_neural_networks.ipynb`](https://colab.research.google.com/github/AILab-MLTools/LightAutoML/blob/master/examples/tutorials/Tutorial_9_neural_networks.ipynb) - example of using Tabular preset with neural networks.


**Note 1**: for production you have no need to use profiler (which increase work time and memory consomption), so please do not turn it on - it is in off state by default
Expand Down
1 change: 1 addition & 0 deletions docs/pages/Kaggle_Kernels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Kaggle Kernels
* `Tabular Playground Series February 2021 competition solution <https://www.kaggle.com/alexryzhkov/lightautoml-tabulardata-love>`_
* `Interpretable WhiteBox solution <https://www.kaggle.com/simakov/lama-whitebox-preset-example>`_
* `Custom ML pipeline elements inside existing ones <https://www.kaggle.com/simakov/lama-custom-automl-pipeline-example>`_
* `Tabular Playground Series November 2022 competition solution with Neural Networks <https://www.kaggle.com/code/mikhailkuz/lightautoml-nn-happiness>`_
1 change: 1 addition & 0 deletions docs/pages/Python-API.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Python-API
modules/image
modules/ml_algo
modules/ml_algo.tuning
modules/ml_algo.torch_based
modules/pipelines
modules/pipelines.selection
modules/pipelines.features
Expand Down
1 change: 1 addition & 0 deletions docs/pages/Tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ Tutorials
tutorials/Tutorial_6_custom_pipeline.nblink
tutorials/Tutorial_7_ICE_and_PDP_interpretation.nblink
tutorials/Tutorial_8_CV_preset.nblink
tutorials/Tutorial_9_neural_networks.nblink
18 changes: 18 additions & 0 deletions docs/pages/modules/ml_algo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,24 @@ Boosted Trees
~boost_lgbm.BoostLGBM
~boost_cb.BoostCB


Neural Networks
-------------------------

.. currentmodule:: lightautoml.ml_algo.torch_based

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

~nn_models.MLP
~nn_models.DenseLightModel
~nn_models.DenseModel
~nn_models.ResNetModel
~nn_models.SNN


WhiteBox
-------------------------

Expand Down
24 changes: 24 additions & 0 deletions docs/pages/modules/ml_algo.torch_based.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. role:: hidden
:class: hidden-section

lightautoml.ml_algo
===================

Torch utils.

Pooling Strategies
------------------------------

.. currentmodule:: lightautoml.ml_algo.torch_based.nn_models

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

SequenceAbstractPooler
SequenceClsPooler
SequenceMaxPooler
SequenceSumPooler
SequenceAvgPooler
SequenceIndentityPooler
1 change: 1 addition & 0 deletions docs/pages/modules/ml_algo.tuning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ Tuning with Optuna
:template: classtemplate.rst

OptunaTuner
DLOptunaTuner
13 changes: 13 additions & 0 deletions docs/pages/modules/pipelines.features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,16 @@ Text Feature Pipelines
TextAutoFeatures
NLPTFiDFFeatures
TextBertFeatures


Feature Pipelines for Neural Networks Models
------------------------------

.. currentmodule:: lightautoml.pipelines.features.torch_pipeline

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

TorchSimpleFeatures
18 changes: 0 additions & 18 deletions docs/pages/modules/text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,6 @@ Tokenizers
~tokenizer.SimpleEnTokenizer


Pooling Strategies
------------------------------

.. currentmodule:: lightautoml.text

.. autosummary::
:toctree: ./generated
:nosignatures:
:template: classtemplate.rst

~sentence_pooling.SequenceAbstractPooler
~sentence_pooling.SequenceClsPooler
~sentence_pooling.SequenceMaxPooler
~sentence_pooling.SequenceSumPooler
~sentence_pooling.SequenceAvgPooler
~sentence_pooling.SequenceIndentityPooler


Utils
------------------------------

Expand Down
2 changes: 2 additions & 0 deletions docs/pages/modules/transformers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ Numeric

NaNFlags
FillnaMedian
FillnaMean
FillInf
LogOdds
StandardScaler
QuantileBinning
QuantileTransformer


Categorical
Expand Down
3 changes: 3 additions & 0 deletions docs/pages/tutorials/Tutorial_9_neural_networks.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/tutorials/Tutorial_9_neural_networks.ipynb"
}
Loading