Skip to main content

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.

Overview of FRANe

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)

Source distribution for frane 0.1.0
File Size Uploaded
frane-0.1.0.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for frane 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page