Skip to main content

Python wrapper for calculating the geometrical separability index (gsi)

Project description

Geometrical Separability Index (GSI)

This is a python wrapper of the Geometrical Separability Index (GSI) based on the MATLAB code proposed in [1] and originally proposed by Chris Thornton in [2].

[1] Greene, J. (2001). Feature subset selection using thornton’s separability index and its applicability to a number of sparse proximity-based classifiers. In Proceedings of Annual Symposium of the Pattern Recognition Association of South Africa.

[2] Thornton, C. (1998). Separability is a learner’s best friend. In 4th Neural Computation and Psychology Workshop, London, 9–11 April 1997 (pp. 40-46). Springer, London.

Installation

Run the following to install:

pip install gsindex

Usage

import numpy as np
from gsindex import geometrical_separability_index

matrix = np.array([[1, 2], [3, 4], [5, 6], [7, 8], [10, 11], [12, 13], [14, 15], [16, 17]])
labels = np.array(['sample1', 'sample1', 'sample1', 'sample1', 'sample2', 'sample2', 'sample2', 'sample2'])

gsi = geometrical_separability_index(matrix, labels)

print(gsi)

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

gsindex-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

gsindex-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file gsindex-0.1.0.tar.gz.

File metadata

  • Download URL: gsindex-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for gsindex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39e5de5b01a0486783a95bea7961ace105387a1bd9de9d95c3586aa1c261699a
MD5 0f9814382ded6c3cc88b9c94389e1d54
BLAKE2b-256 4ac80be2b851ef5dc8d41489f4a1b50ce86d94e602ccdb30c9209795ccf57a93

See more details on using hashes here.

File details

Details for the file gsindex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gsindex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for gsindex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d5e4a75f0eab1a8ef70d4ffbd06a35769d25418e0ba448b170d79d71cdfc9e6
MD5 10ccfe6ee4dbbd531781645053e3e7b6
BLAKE2b-256 f7c1a6e3c81127e8ab41f9dc02a1887e9f8912a56b51ca5f07a93f0d837eadf6

See more details on using hashes here.

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