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
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
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)
- pandas: 0.22.0 or higher
- NumPy: 1.14.0 or higher
- scipy: 1.1.0 or higher
- matplotlib: 2.2.2 or higher