MCPcopy Index your code
hub / github.com/ScienceKot/kydavra

github.com/ScienceKot/kydavra @v1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0 ↗ · + Follow
44 symbols 89 edges 12 files 34 documented · 77%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

kydavra

Kydavra is a python sci-kit learn inspired package for feature selection. It used some statistical methods to extract from pure pandas Data Frames the columns that are related to column that your model should predict. This version of kydavra has the next methods of feature selection: * ANOVA test selector (ANOVASelector). * Chi squared selector (ChiSquaredSelector). * Genetic Algorithm selector (GeneticAlgorithmSelector). * Kendall Correlation selector (KendallCorrelationSelector). * Lasso selector (LassoSelector). * Pearson Correlation selector (PearsonCorrelationSelector). * Point-Biserial selector (PointBiserialCorrSelector). * P-value selector (PValueSelector). * Spearman Correlation selector (SpermanCorrelationSelector). All these methods takes the pandas Data Frame and y column to select from remained columns in the Data Frame.

How to use kydavra\ To use selector from kydavra you should just import the selector from kydavra in the following framework:\ from kydavra import <class name>\ class names are written above in parantheses.\ Next create a object of this algorithm (I will use p-value method as an example).\ method = PValueSelector()\ To get the best feature on the opinion of the method you should use the 'select' function, using as parameters the pandas Data Frame and the column that you want your model to predict.\ selected_columns = method.select(df, 'target')\ Returned value is a list of columns selected by the algorithm.

Some methods could plot the process of selecting the best features.\ In these methods dotted are features that wasn't selected by the method.\ ChiSquaredSelector\ method.plot_chi2()\ For ploting and\ method.plot_chi2(save=True, file_path='FILE/PATH.png')\ and\ method.plot_p_value()\ for ploting the p-values.\ LassoSelector\ method.plot_process()\ also you can save the plot using the same parameters.\ PValueSelector\ method.plot_process()

Some advices. * Use ChiSquaredSelector for categorical features. * Use LassoSelector and PValueSelector for regression problems. * Use PointBiserialCorrSelector for binary classification problems.

With love from Sigmoid.

We are open for feedback. Please send your impression to vpapaluta06@gmail.com

Core symbols most depended-on inside this repo

bin_to_cols
called by 2
kydavra/PValueSelector.py
inverse
called by 2
kydavra/GeneticAlgorithmSelector.py
gene_to_cols
called by 2
kydavra/GeneticAlgorithmSelector.py
bin_to_cols
called by 2
kydavra/ChiSquaredSelector.py
bin_to_cols
called by 2
kydavra/ANOVASelector.py
cross_over
called by 1
kydavra/GeneticAlgorithmSelector.py
mutate
called by 1
kydavra/GeneticAlgorithmSelector.py
index_to_cols
called by 1
kydavra/PearsonCorrelationSelector.py

Shape

Method 32
Class 11
Function 1

Languages

Python100%

Modules by API surface

kydavra/GeneticAlgorithmSelector.py7 symbols
kydavra/PValueSelector.py5 symbols
kydavra/LassoSelector.py5 symbols
kydavra/ChiSquaredSelector.py5 symbols
kydavra/SpearmanCorrelationSelector.py4 symbols
kydavra/PointBiserialSelector.py4 symbols
kydavra/PearsonCorrelationSelector.py4 symbols
kydavra/KendallCorrelationSelector.py4 symbols
kydavra/ANOVASelector.py4 symbols
kydavra/errors.py2 symbols

For agents

$ claude mcp add kydavra \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact