Metadata-Version: 2.1
Name: insolver
Version: 0.4.20a1
Summary: Insolver is low-code machine learning library, initially created for the insurance industry.
Home-page: http://insolver.io/
Author: Mindset Team
Author-email: request@mind-set.ru
License: MIT
Project-URL: Bug Tracker, https://github.com/MindSetLib/Insolver/issues
Project-URL: Documentation, https://insolver.readthedocs.io/en/stable/
Project-URL: Source Code, https://github.com/MindSetLib/Insolver
Keywords: insurance,machine learning
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typing-extensions (>=4.0.1)
Requires-Dist: numpy (<1.22.0,~=1.21.0)
Requires-Dist: pandas (<1.4.0,>=1.2.0)
Requires-Dist: scipy (<1.8.0,>=1.6.0)
Requires-Dist: scikit-learn (<1.1.0,>=1.0)
Requires-Dist: xgboost (>=1.5.0)
Requires-Dist: lightgbm (>=3.2.0)
Requires-Dist: catboost (>=0.24.4)
Requires-Dist: hyperopt (>=0.2.5)
Requires-Dist: matplotlib (>=3.4.3)
Requires-Dist: plotly (>=5.3.1)
Requires-Dist: seaborn (==0.11.2)
Requires-Dist: shap (>=0.39.0)
Requires-Dist: h2o (>=3.32.0.3)
Requires-Dist: statsmodels (==0.13.1)
Requires-Dist: lime (>=0.2.0.1)
Requires-Dist: dill (>=0.3.4)
Requires-Dist: jinja2 (>=3.0.1)
Requires-Dist: pandas-profiling (==3.1.0)
Requires-Dist: flask (>=2.0.2)
Requires-Dist: fastapi (>=0.65.2)
Requires-Dist: uvicorn[standard] (>=0.13.3)
Requires-Dist: pydantic (==1.8.2)
Requires-Dist: gunicorn (>=20.0.4)
Requires-Dist: django (==3.2.*)
Requires-Dist: djangorestframework (==3.13.1)
Requires-Dist: psycopg2-binary (==2.9.3)
Requires-Dist: sympy (==1.9)
Provides-Extra: dev
Requires-Dist: black (>=22.6.0) ; extra == 'dev'
Requires-Dist: flake8 (>=4.0.1) ; extra == 'dev'
Requires-Dist: pre-commit (>=2.19.0) ; extra == 'dev'
Requires-Dist: pytest (>=6.2.5) ; extra == 'dev'
Requires-Dist: pytest-cov (>=2.12.1) ; extra == 'dev'
Requires-Dist: tox (>=3.24.3) ; extra == 'dev'
Requires-Dist: locust (==2.9.0) ; extra == 'dev'
Requires-Dist: myst-parser ; extra == 'dev'
Requires-Dist: Sphinx ; extra == 'dev'
Requires-Dist: sphinx-rtd-theme ; extra == 'dev'
Requires-Dist: sphinxcontrib-applehelp ; extra == 'dev'
Requires-Dist: sphinxcontrib-devhelp ; extra == 'dev'
Requires-Dist: sphinxcontrib-htmlhelp ; extra == 'dev'
Requires-Dist: sphinxcontrib-jsmath ; extra == 'dev'
Requires-Dist: sphinxcontrib-qthelp ; extra == 'dev'
Requires-Dist: sphinxcontrib-serializinghtml ; extra == 'dev'
Provides-Extra: full
Requires-Dist: dice-ml ; extra == 'full'
Requires-Dist: alibi ; extra == 'full'

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/insolver)
[![PyPI](https://img.shields.io/pypi/v/insolver?style=flat)](https://pypi.org/project/insolver/)
[![Documentation Status](https://readthedocs.org/projects/insolver/badge/?version=latest)](https://insolver.readthedocs.io/en/latest/?badge=latest)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/MindSetLib/Insolver/Python%20application?logo=github&label=tests)](https://github.com/MindSetLib/Insolver/actions)
[![Downloads](https://pepy.tech/badge/insolver/week)](https://pepy.tech/project/insolver)
<!-- [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/MindSetLib/Insolver/Insolver%20testing?logo=github&label=tests)](https://github.com/MindSetLib/Insolver/actions) -->
<!-- [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) -->

# Insolver

Insolver is a low-code machine learning library, originally created for the insurance industry, but can be used in any other. You can find a more detailed overview [here](https://insolver.readthedocs.io/en/latest/source/overview.html).

## Installation:

- Insolver can be installed by running `pip install insolver`.
- If you want to install insolver with all heavy requirements, install with `pip install insolver[full]`.
- If you want to install insolver with development requirements, install with `pip install insolver[dev]`.


### Insolver is already installed in the easy access cloud via the GitHub login. Try https://mset.space with a familiar notebook-style environment.

## Examples:

- [Binary Classification Example - Rain in Australia Prediction](https://github.com/MindSetLib/Insolver/blob/fixed_docs/tutorials/Binary%20Classification%20Example%20-%20Rain%20in%20Australia%20Prediction.ipynb)
This tutorial demonstrates how to create **classification models** for the [`weatherAUS`](https://www.kaggle.com/jsphyg/weather-dataset-rattle-package) dataset: getting and preprocessing data, transformations, creating models, plotting SHAP values and comparing models.

- [Data Preprocessing Example I - New York City Airbnb](https://github.com/MindSetLib/Insolver/blob/fixed_docs/tutorials/Data%20Preprocessing%20Example%20I%20-%20New%20York%20City%20Airbnb.ipynb)
This tutorial demonstrates how to use the [`feature_engineering`](https://github.com/MindSetLib/Insolver/tree/fixed_docs/insolver/feature_engineering) module and all the **main features of each class**. For this, the [`AB_NYC_2019`](https://www.kaggle.com/dgomonov/new-york-city-airbnb-open-data) dataset is used.

- [Data Preprocessing Example II - New York City Airbnb](https://github.com/MindSetLib/Insolver/blob/fixed_docs/tutorials/Data%20Preprocessing%20Example%20II%20-%20New%20York%20City%20Airbnb.ipynb)
This tutorial also demonstrates how to use the [`feature_engineering`](https://github.com/MindSetLib/Insolver/tree/fixed_docs/insolver/feature_engineering) module, but it covers the **automated data preprossesing** class and all of its features. For this, the [`AB_NYC_2019`](https://www.kaggle.com/dgomonov/new-york-city-airbnb-open-data) dataset is used.

- [Gradient Boosting Example - Lending Club](https://github.com/MindSetLib/Insolver/blob/fixed_docs/tutorials/Gradient%20Boosting%20Example%20-%20Lending%20Club.ipynb)
This tutorial demonstrates how to create **classification models** for the [`Lending Club`](https://www.kaggle.com/wordsforthewise/lending-club) dataset using the **Gradient Boosting libraries** and the `InsolverGBMWrapper` class.

- [Inference Example](https://github.com/MindSetLib/Insolver/blob/fixed_docs/tutorials/Inference%20Example.ipynb)
This tutorial demonstrates how to load `InsolverTransform` transforms from a file and initialize them using the `init_transforms` function.

- [InsolverDataFrame and InsolverTransform Example](https://github.com/MindSetLib/Insolver/blob/fixed_docs/tutorials/InsolverDataFrame%20and%20InsolverTransform%20Example.ipynb)
This tutorial demonstrates main features of the `InsolverDataFrame` class and the `InsolverTransform` class.

- [Regression Example - FreeMLP](https://github.com/MindSetLib/Insolver/blob/fixed_docs/tutorials/Regression%20Example%20-%20FreeMLP.ipynb)
This tutorial demonstrates how to create **regression models** for the `freMPL-R` dataset: getting and preprocessing data, transformations, creating models, plotting SHAP values and comparing models.

- [Regression Example - US Accidents](https://github.com/MindSetLib/Insolver/blob/fixed_docs/tutorials/Regression%20Example%20-%20FreeMLP.ipynb)
This tutorial demonstrates how to create **regression models** for the [`US Traffic Accident`](https://smoosavi.org/datasets/us_accidents) dataset: getting and preprocessing data, transformations, creating models, plotting SHAP values and comparing models.

- [Report Example](https://github.com/MindSetLib/Insolver/blob/fixed_docs/tutorials/Report%20Example.ipynb)
This tutorial demonstrates how to create a **HTML report** with different models using the `Report` class.

## Documentation:

Available [here](https://insolver.readthedocs.io/)

## Supported libraries:

Libs:
- sklearn
- H2O

Boosting models:
- XGBoost
- LightGBM
- CatBoost

Model interpretation:
- shap plots

Serving (REST-API):
- flask
- fastapi


### Run tests:
```shell
python -m pytest
```

tests with coverage:
```shell
python -m pytest --cov=insolver; coverage html; xdg-open htmlcov/index.html
```


## Contributing to Insolver:

Please, feel free to open an issue or/and suggest PR, if you find any bugs or any enhancements.

## Demo
### Example of creating models using the Insolver
![](https://github.com/MindSetLib/Insolver/releases/download/v0.4.6/InsolverDemo.gif)

### Example of a model production service
![](https://github.com/MindSetLib/Insolver/releases/download/v0.4.6/InsolverImplementation.gif)

### Example of an elyra pipeline built with the Insolver inside
![](https://github.com/MindSetLib/Insolver/releases/download/v0.4.6/InsolverElyraPipeline.gif)

### Contacts
frank@mind-set.ru
+79263790123
