Skip to main content

It performs feature analysis for data preprocessing or usage of data in Machine Learning.

Project description

Feature Analysis: Simple Feature Analysis in Python

It performs feature analysis for data preprocessing or usage of data in Machine Learning.

Methods

There are four methods used to identify features to remove:

  1. Finding Missing Values (find_missing(missing_threshold))

    %% Find the features with a fraction of missing values above missing_threshold

  2. Single Unique Values (find_unique())

    %% Find the features having a single unique value. NaNs do not count as a unique value.

  3. Collinear Features (find_collinear(correlation_threshold,one_hot=False))

    %% Finds collinear features based on the correlation coefficient between features.

  4. Low Importance Features (find_low_impt(cumulative_impt,label))

    %% Finds the lowest importance features not needed to account for cumulative_importance fraction of the total feature importance from the gradient boosting machine. label corresponding to regession or classification

Usage

Refer to the testing.py for how to use the different methods in module.

Visualizations

The FeatureAnalysis methods also includes a number of visualization in each methods mentioned above to inspect characteristics of a dataset.

Histogram for missing values

Histogram for unique values

Correlation Heat map

Important Features

Cumulative Feature Importance

Requirements:

Install dependencies just mentioned in requirements.txt by typing command in shell.

pip install -r requirements.txt

Contact

Any questions can be directed to nbansal1_be18@thapar.edu.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

features_anal-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file features_anal-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: features_anal-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for features_anal-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2988ba4cac63d83b5b72c8ee2b3cf2626178ebf6151aded10234c602d8cacc2
MD5 075639698646875d4fd38ce5a085e0c2
BLAKE2b-256 856b1c9084c66fc734bc5ac3b5371e706b95fd928b3cbcc5403360977e638d9e

See more details on using hashes here.

Supported by

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