Important variables determined through permutation selection
Project description
PermutationImportance
Provides an efficient method to compute variable importance through the permutation of input variables. Uses multithreading and supports both Windows and Unix systems and Python 2 and 3.
This repository provides the stand-alone functionality of a permutation-based method of computing variable importance in an arbitrary model. Importance for a given variable is computed in accordance with Lakshmanan et al. (2015)'s paper[1]. Variables which, when their values are permuted, cause the worst resulting score are considered most important. This implementation provides the functionality for an arbitrary method for computing the "worst" score and for using an arbitrary scoring metric. The most common case of this is to chose the variable which most negatively impacts the accuracy of the model.
Functionality is provided not only for returning the most important variable (along with the raw scores for each variable) but also for returning the sequential importance of variables. To do this, the most important variable is determined and then it is left permuted while the next most important variable is determined. In the extreme case, this is continued until the sequential ordering of all variables is determined, but this can be terminated at an earlier level by choice.
1Lakshmanan, V., C. Karstens, J. Krause, K. Elmore, A. Ryzhkov, and S. Berkseth, 2015: Which Polarimetric Variables Are Important for Weather/No-Weather Discrimination?. J. Atmos. Oceanic Technol., 32, 1209–1223, https://doi.org/10.1175/JTECH-D-13-00205.1
Setup
PermutationImportance is now available on pip, so you can simply install with
pip install PermutationImportance
and import the desired method with
from permutation_importance.variable_importance import permutation_selection_importance
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for PermutationImportance-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af6987b9e9c4ff80ba0d30eef4a0f1a23ccd817e633460636b0227cbf5e6791b |
|
MD5 | b539d9cbd2d6960d9985899756f5602d |
|
BLAKE2b-256 | 8423570a1eb9edbdd293a1baceaab0b5ea7b219416c6f57b1b4513591e6f1572 |
Hashes for PermutationImportance-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67d8520250b59769a75000458f8509d241d7133932331b04ec2e3e0e009cc90a |
|
MD5 | a807e4439df1dd3d84382560d9951a14 |
|
BLAKE2b-256 | bf43501525aa126d688aa7f10886d9db45822839e0c4712e488794ec249f997a |