https://github.com/darrencl/featureselectors.jl
Lightweight feature selection package in Julia
https://github.com/darrencl/featureselectors.jl
data-science feature-extraction feature-selection
Last synced: 5 months ago
JSON representation
Lightweight feature selection package in Julia
- Host: GitHub
- URL: https://github.com/darrencl/featureselectors.jl
- Owner: darrencl
- License: mit
- Created: 2020-02-27T04:31:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-01T05:25:28.000Z (about 4 years ago)
- Last Synced: 2025-10-23T21:59:19.200Z (9 months ago)
- Topics: data-science, feature-extraction, feature-selection
- Language: Julia
- Homepage:
- Size: 229 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FeatureSelectors.jl
[](https://darrencl.github.io/FeatureSelectors.jl/stable)
[](https://darrencl.github.io/FeatureSelectors.jl/dev)
[](https://github.com/darrencl/FeatureSelectors.jl/actions?query=workflow%3ACI)
[](https://codecov.io/gh/darrencl/FeatureSelectors.jl)
Simple tool to select feature based on the statistical relationship between features to target variable. The currently implemented feature is based on:
* Correlation
* P-value, which can be obtained by either Chi-square or F test
## Quick start
```
julia> using RDatasets, FeatureSelectors, DataFrames
julia> boston = dataset("MASS", "Boston");
julia> selector = UnivariateFeatureSelector(method=pearson_correlation, k=5)
UnivariateFeatureSelector(FeatureSelectors.pearson_correlation, 5, nothing)
julia> select_features(
selector,
boston[:, Not(:MedV)],
boston.MedV
)
5-element Vector{String}:
"LStat"
"Rm"
"PTRatio"
"Indus"
"Tax"
```