Skip to main content

sepplotlib

Separation plots for binary classification problems.

Credits

The one-dimensional separation plot is adapted from code originally produced by Brian Greenhill, Michael D. Ward, and Audrey Sacks. The bi-separation plot and model criticism plot are adapted from code originally produced by Michael Colaresi and Zuhaib Mahmood.

Installation

pip install sepplotlib to install.

Example usage

Please see the accompanied notebook for an example using mock data.

The included figures are objects that expect a pandas DataFrame and strings for the relevant columns. To generate a one-dimensional separation plot for instance, simply run:

import sepplotlib as spl
spl.SeparationPlot(
    df=df,
    y_true="y_true",
    y_pred="y_pred",
    title="Example"
)

Similarly to generate a model criticism plot:

import sepplotlib as spl
spl.ModelCriticismPlot(
    df=df,
    y_true="y_true",
    y_pred="y_pred",
    lab="lab",
    title="Example"
)

And finally, to generate a two-dimensional, bi-separation plot:

import sepplotlib as spl
spl.BiseparationPlot(
    df=df,
    x="y_pred_a",
    y="y_pred_b",
    obs="y_true",
    lab="lab",
    title="Example",
)

Please run help on any of these classes to learn what can be customized (e.g. help(spl.SeparationPlot)).

Release files for sepplotlib 1.0.1

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

Source distribution (sdist)

Source distribution for sepplotlib 1.0.1
File Size Uploaded
sepplotlib-1.0.1.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sepplotlib 1.0.1
File Interpreter ABI Platform
sepplotlib-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / sepplotlib-1.0.1.tar.gz

Download URL sepplotlib-1.0.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cfd45c89faac5428e81f91ccc86d0e8a2037bacd936f0e5a51ec0df3b94339e0
BLAKE2b-256 checksum
How to use checksums
122898e9dc9ef18cab9ab5818d2052e24c927480f41067dd8e53323ccca0a2b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.8.5 Darwin/19.6.0

Release files / sepplotlib-1.0.1-py3-none-any.whl

Download URL sepplotlib-1.0.1-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cb635f577f3b513363ff56c7b76a134cef826fe44ed83c81bcd4170aebcb794
BLAKE2b-256 checksum
How to use checksums
47cf25e8bab2862640cfbbf2bab2166ed174523362820dd57468865e6f177439
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.8.5 Darwin/19.6.0

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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