Skip to main content

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frane-0.1.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

frane-0.1.0-py3.8.egg (11.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page