Skip to main content

A python module to reduce features using correlation matrix

Project description

corrfeatred

reduce features using correlation matrix

Installation

pip install corrfeatred

Usage

from corrfeatred import reduce_features

correlation_matrix = #correlation matrix
feature_set = reduce_features(correlation_matrix, threshhold=0.8, policy='min')


# if you want another set of features for same correlation matrix, then use random seed to change the output.

different_feature_set = reduce_features(correlation_matrix, threshhold=0.8, policy='min', random_seed = 42)

Workflow

Currently there is only one function which takes correlation matrix and threshholds as input and then constructs a graph.

There after we find maximal cliques in the graph and our goal is to have at max one feature from each clique.

workflow

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

corrfeatred-0.0.3.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

corrfeatred-0.0.3-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page