Skip to main content

Auto Feature Selection and Evaluation using Bregman Divergence & ItakuraSaitoSelector

Project description

Dependencies

Make sure you have install the sklearn

sklearn version == 1.0.1

Feature Selection using Bregman divergence & Itakura Saito

What is Bregman Divergence & Itakura Saito

In statistics, divergence is a function that finds and measures differences using the distance between two probability distributions. Bregman divergence is one of many divergences. It can be calculated with the squared Euclidean distance:

###Steps to apply auto_feat_selection

#import

from auto_feat_select_rupakbob import auto_feat_selection

#grid_feat_search(dataframe,'taget_column_name', max_divergence(default = 0,max = 10)accepted divergence with the target column)

index 0 = BregmanDivergenceSelector, index 1 = ItakuraSaitoSelector
cols_BregmanDivergenceSelector = auto_feat_selection.grid_feat_search(df,'target',5)[0]
cols_ItakuraSaitoSelector = auto_feat_selection.grid_feat_search(df,'target',5)[1]

Evaluate if the selected features improves the model

###Currently supports Logistic Regression base model with goal to evaluate feature performance

#evaluate_grid_feat_search(dataframe,'taget_column_name')

auto_feat_selection.evaluate_grid_feat_search(df,cols_BregmanDivergenceSelector,target ='target')
auto_feat_selection.evaluate_grid_feat_search(df,cols_ItakuraSaitoSelector,target ='target')

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

auto_feat_selection-0.0.8.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

auto_feat_selection-0.0.8-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