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)
Metadata
Release files for gsindex 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gsindex-0.0.1.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gsindex-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / gsindex-0.0.1.tar.gz
| Download URL | gsindex-0.0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
507ff73d778920198018b90202edd4195877200451c925955223e2be801562ea
|
|
BLAKE2b-256 checksum How to use checksums |
e1b9870bdabb855c5afbf12c7313a7f3f5a64d545e25f6310a63cf84a821c327
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / gsindex-0.0.1-py3-none-any.whl
| Download URL | gsindex-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e6482e69c74e5a059da5cd73806c3939957aaa865c8cb9a06d8b990d0c92ecb
|
|
BLAKE2b-256 checksum How to use checksums |
dbdae0581d5c3c81fb671f2b7b2c49e9cdf99033e67b9c47051d54bb53329667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|