Skip to content

viessmann/abc_analysis

Repository files navigation

ABC analysis

Performs and visualizes an ABC analysis with automated limit detection.

This package is a Python implementation of the R package ABCanalysis.

The package is based on "Computed ABC Analysis for rational Selection of most informative Variables in multivariate Data", PLoS One. Ultsch. A., Lotsch J. (2015) https://doi.org/10.1371/journal.pone.0129767

Where to get it

The source code is hosted on GitHub at: https://github.com/viessmann/abc_analysis

# First installation via PyPI
pip install abc_analysis
# Update via PyPI
pip install abc_analysis --upgrade

Basic usage

from abc_analysis import abc_analysis, abc_plot

# Perform an ABC analysis on a numeric vector (without plotting)
dctAnalysis = abc_analysis([1, 15, 25, 17, 2, 3, 5, 6, 2, 3, 22])

# Perform an ABC analysis with plotting
dctAnalysis = abc_analysis([1, 15, 25, 17, 2, 3, 5, 6, 2, 3, 22], True)

# Plot saved results of an ABC analysis
abc_plot(dctAnalysis)

Dependencies