Skip to main content

# FastExplain > Fit Fast, Explain Fast

## Installing ` pip install fast-explain ` ## Clean Data, Fit ML Models and Explore Results all in one line. FastExplain provides an out-of-the-box tool for analysts to quickly explore data, train and interpret models, with flexibility to fine-tune if needed. - Automated cleaning and fitting of machine learning models with hyperparameter search - Aesthetic display of explanatory methods ready for reporting - Connected interface for all data, models and related explanatory methods

## Quickstart

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/felixzhu17/FastExplain/blob/main/demos/FastExplain%20Titanic%20Quickstart.ipynb)

### Automated Cleaning and Fitting ` python from FastExplain import * df = load_titanic_data() classification = model_data(df, dep_var="Survived", model="ebm") ` ### Aesthetic Display ` python feature_correlation(classification.data.df) ` <img alt=”Feature Correlation” src=”images/feature_correlation.png”>

` python plot_one_way_analysis(classification.data.df, "Age", "Survived", filter = "Sex == 1") ` <img alt=”One Way” src=”images/one_way.png”>

` python plot_ebm_explain(classification.m, classification.data.df, "Age") ` <img alt=”EBM” src=”images/ebm.png”>

` python plot_ale(classification.m, classification.data.xs, "Age", filter = "Sex == 1", dep_name = "Survived") ` <img alt=”ALE” src=”images/ALE.png”>

` python classification_1 = model_data(df, dep_var="Survived", model="rf", hypertune=True, cont_names=['Age'], cat_names = [], hypertune=True) models = [classification.m, classification_1.m] data = [classification.data.xs, classification_1.data.xs] plot_ale(models, data, 'Age', dep_name = "Survived") ` <img alt=”multi_ALE” src=”images/multi_ALE.png”>

### Connected Interface ` python classification_1.plot_one_way_analysis("Age", filter = "Sex == 1") classification_1.plot_ale("Age", filter = "Sex == 1") `

` python classification_1.shap_dependence_plot("Age", filter = "Sex == 1") ` <img alt=”SHAP” src=”images/shap.png”>

` python classification_1.error # {'auc': {'model': {'train': 0.9934332941166654, # 'val': 0.8421607378129118, # 'overall': 0.9665739941840028}}, # 'cross_entropy': {'model': {'train': 0.19279692001978943, # 'val': 0.4600233891109683, # 'overall': 0.24648214781700722}}} `

## Models Supported - Random Forest - XGBoost - Explainable Boosting Machine - ANY Model Class with fit and predict attributes

` python pip install lightgbm `

` python from lightgbm import LGBMClassifier custom_model = model_data(df, 'Survived', model=LGBMClassifier) custom_model.plot_ale("Age") custom_model.shap_dependence_plot("Age") `

## Exploratory Methods Supported: - One-way Analysis - Two-way Analysis - Feature Importance Plots - ALE Plots - Explainable Boosting Methods - SHAP Values - Partial Dependence Plots - Sensitivity Analysis

Metadata

Release files for fast-explain 0.0.91

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for fast-explain 0.0.91
File Interpreter ABI Platform Actions
fast_explain-0.0.91-py2.py3-none-any.whl Python 3, Python 2 none any Details for fast_explain-0.0.91-py2.py3-none-any.whl

Release files / fast_explain-0.0.91-py2.py3-none-any.whl

Download URL fast_explain-0.0.91-py2.py3-none-any.whl
Size 157.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c4e92217a2d723ed4ecd314886c845cde8c916baf1f1eea66f5c0f016d30140e
BLAKE2b-256 checksum
How to use checksums
f1c63781889d5556c9a5b8b8213425083cc35ae305bd739e9e1a636529238640
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Security for fast-explain 0.0.91

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.91 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page