parleml-mli
mli is the interpretation library of ParleML, the machine learning platform built to be driven by AI agents. It explains fitted models and the data behind them: who the model flags and why, which rules it learned, how good and how trustworthy it is. Free to use, including commercial use.
pip install parleml-mli
from parleml_mli import ExplanationsConfig, ProfilingConfig, RulesConfig, fit_profiler
result = fit_profiler(
model=clf, X=X_train, y=y_train,
target_mask=(y_train == 1), # the rows to profile: here, the positives
X_test=X_test, y_test=y_test, # held-out rows for the model evaluation
X_holdout=X_test, y_holdout=y_test, # held-out rows for the rules' Test numbers
config=ProfilingConfig(rules=RulesConfig(), explanations=ExplanationsConfig()),
)
result.summary_df # one row per archetype: size, lift, key signatures
result.save("out/profiling_result.joblib")
fit_profiler returns a ProfilingResult with the analyses you asked for. For a scorer you can't
open, or for stored predictions, use monitor_predictions.
What it computes
| Capability | Entry point | What you get |
|---|---|---|
| Behavioural archetypes | fit_profiler |
Clusters of the target rows in tree-leaf or SHAP space, with signatures and similar cases |
| Rule extraction | extract_rules |
IF-THEN rules from supported trees, with Train and, given held-out rows, Test metrics |
| Global explanations | explain |
PDP, ALE, interactions, surrogate, importance, drift, fairness and the error tree |
| EDA and leakage | compute_eda |
Distributions, associations, missing values, outliers and suspicious features; no model needed |
| Evaluation and label noise | parleml_mli.evaluation |
Metrics, calibration, business-cost views, and rows worth a second look |
| Trust summary | compute_trust_summary |
Diagnostic tiles from the evidence you have; missing evidence never shows as a pass |
| Model cards | build_model_card |
A structured model card with regulatory crosswalks |
| Bring-your-own predictions | monitor_predictions |
The model-agnostic analyses from a scorer you can't open |
It reads models from parleml-ml4, which it installs,
and models trained elsewhere. LightGBM, XGBoost, CatBoost, scikit-learn tree ensembles, EBM,
RuleFit and scikit-learn linear models get the full analysis; any other model with predict or
predict_proba gets the model-agnostic one through monitor_predictions.
Installation
Python 3.11, 3.12 or 3.13 on Windows or Linux (x86-64). The wheels are compiled, so pip picks the
one for your platform; on macOS, run ParleML in Docker. Tree plots need the Graphviz dot
program on your PATH (a system package, not a Python one).
Documentation
- The mli documentation: installation, quickstart, guides and the API reference.
- ParleML and its manual: the platform, and the
Interpretation tabs built on mli. The same documentation ships with ParleML under
/help.
Questions: support@parleml.com.
Licence
Free to use, including commercial use, under the ParleML terms of use
(LICENSE.txt in this package). Third-party material this package contains is listed in
NOTICE.txt; every ParleML notice is at parleml.com/legal.
Exported scoring packages may be sold and distributed with the required ParleML runtime unchanged. Selling ParleML or charging for access to its platform is not permitted.
Metadata
Release files for parleml-mli 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 45.0 MB
Release files / parleml_mli-0.8.0-cp313-cp313-win_amd64.whl
| Download URL | parleml_mli-0.8.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 5.8 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
879076d19ad9ec3d4afcb7e2f91321a4feab7c95947c7693175b63c48e9b3bcc
|
|
BLAKE2b-256 checksum How to use checksums |
77b118384fbab1790d789ad2f9b038a055dc0f68722c5664a41c74258759a779
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / parleml_mli-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | parleml_mli-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.4 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b9acc497afb33b61d59c79c4673a38af5d1372488f255b6c075510a2834e71d6
|
|
BLAKE2b-256 checksum How to use checksums |
b243dee358572e5e305516976802dc4163e43595bcc794af010c6b7de4fee5d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / parleml_mli-0.8.0-cp312-cp312-win_amd64.whl
| Download URL | parleml_mli-0.8.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 7.1 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
91cd6d0f33c6bc02074bad0c0d7d777e259710bdd4c1c9a46c653b23ad19e76d
|
|
BLAKE2b-256 checksum How to use checksums |
39f11635d92515854fa358b056b338b6b4ecb518c0ee128baf4492792ffe5a2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / parleml_mli-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | parleml_mli-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.4 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a0b1ba99acf0fa25dd0231687dc54585fcd7aaecadbd177f7e5b095fcbf1652a
|
|
BLAKE2b-256 checksum How to use checksums |
112759c2ed9dd28ffc4ccdb89d71e726f21d56370b81bacf5a3ca039b5edcddb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / parleml_mli-0.8.0-cp311-cp311-win_amd64.whl
| Download URL | parleml_mli-0.8.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 7.8 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
041f478f938fbab44834b19f5537fe745a527a9b07ddc2692193315de51ac488
|
|
BLAKE2b-256 checksum How to use checksums |
f865e63bbde1cb788cf32e197a28f93a2ab5877f677c52b0c52db33d4be0a3cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / parleml_mli-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | parleml_mli-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
4a9e14e242d8fec0aa048fafc77bb7d211e914d9e84d2afe0e366f942d473e84
|
|
BLAKE2b-256 checksum How to use checksums |
0c60f0f89ce06e342d0b9e3986e8fad0c450f6ad3f8c977e2a793c2b8f75fcb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for parleml-mli 0.8.0
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.