FRANe
Unsupervised Feature Ranking via Attribute Networks (FRANe) converts a dataset into a network (graph) with
- nodes that correspond to the features in the data,
- undirected edges whose weights are proportional to the similarity between the two corresponding features.
PageRank algorithm is than used to compute the centrality of the nodes (features) and the computed scores are interpreted as feature importance scores.
Examplary Code Snippet
The FRANe method is implemented in Python3. The implementation requires some standard scientific libraries (e.g., numpy and scipy) that make the implementation efficient.
The method is easy to use:
import frane
import numpy as np
x = np.random.random((100,1000))
r = frane.FRANe()
r.fit(x)
scores = r.feature_importances_
print(scores)
See examples for more examples. To run tests, please try pytest ./tests/*
Data
The data in the directory data was taken from sk-feature repository.
Release files for frane 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| frane-0.1.0.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| frane-0.1.0-py3.8.egg | Legacy Egg format | - | - | Details |
Total release size: 16.5 kB
Release files / frane-0.1.0.tar.gz
| Download URL | frane-0.1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9bb4fe4b0df69c5a82d4720f27db083e90d152221a67430f932732b085ae8b5
|
|
BLAKE2b-256 checksum How to use checksums |
b470f8ad404644717b769f0d121148d89e0a507c8cbb7cf0056d05d78ee11a2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Release files / frane-0.1.0-py3.8.egg
| Download URL | frane-0.1.0-py3.8.egg |
|---|---|
| Size | 11.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
debdda9a4764039bcbf7d3825c9ee99edac2e4ce1f4d400485e4c87a44af387c
|
|
BLAKE2b-256 checksum How to use checksums |
e0b8f7710f30ae5a17d68039f91112ecc6f319a78a46d2ed425a9f5e95cf491b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|