Unsupervised Feature Ranking via Attribute Networks
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file frane-0.1.0.tar.gz
.
File metadata
- Download URL: frane-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9bb4fe4b0df69c5a82d4720f27db083e90d152221a67430f932732b085ae8b5 |
|
MD5 | e631a58cafd86cadc84073e6750fad25 |
|
BLAKE2b-256 | b470f8ad404644717b769f0d121148d89e0a507c8cbb7cf0056d05d78ee11a2b |
File details
Details for the file frane-0.1.0-py3.8.egg
.
File metadata
- Download URL: frane-0.1.0-py3.8.egg
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | debdda9a4764039bcbf7d3825c9ee99edac2e4ce1f4d400485e4c87a44af387c |
|
MD5 | 78c10a5a3820a16024335bc9b57f9059 |
|
BLAKE2b-256 | e0b8f7710f30ae5a17d68039f91112ecc6f319a78a46d2ed425a9f5e95cf491b |