No project description provided
Project description
Localized Feature Selection (LFS)
Localized feature selection (LFS) is an approach whereby each region of the sample space is associated with its own distinct optimized feature set, which may vary both in membership and size across the sample space. This allows the feature set to optimally adapt to local variations in the sample space.
This repository contains a python implementation of this method that is compatible with scikit-learn pipelines. For a Matlab version, refer to LINK
Installation
Dependancies
LFS requires:
- python
- NumPy
- SciPy
- Scikit-learn
Usage
from LFS import LocalFeatureSelection
from sklearn.pipeline import Pipeline
lfs = LocalFeatureSelection()
pipeline = Pipeline([('lfs', lfs)])
pipeline.fit(training_data, training_labels)
predicted_labels = pipeline.predict(testing_data)
total_error, class_error = pipeline.score(testing_data, testing_labels)
Authors
- Narges Armanfard
- Oliver Cook
- Kiret Dhindsa
- Areeb Khawajaby
- Ron Harwood
- Thomas Mudway
Acknowledgments
- N. Armanfard, JP. Reilly, and M. Komeili, "Local Feature Selection for Data Classification", IEEE Trans. on Pattern Analysis and Machine Intelligence, vol. 38, no. 6, pp. 1217-1227, 2016.
- N. Armanfard, JP. Reilly, and M. Komeili, "Logistic Localized Modeling of the Sample Space for Feature Selection and Classification", IEEE Transactions on Neural Networks and Learning Systems, vol. 29, no. 5, pp. 1396-1413, 2018.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
LFSpy-1.0.0.tar.gz
(8.7 kB
view hashes)
Built Distribution
LFSpy-1.0.0-py3-none-any.whl
(10.3 kB
view hashes)