scikit-dimension
scikit-dimension is a Python module for intrinsic dimension estimation built according to the scikit-learn API and distributed under the 3-Clause BSD license.
Please refer to the documentation and the paper for detailed API, examples and references
Installation
Using pip:
pip install scikit-dimension
From source:
git clone https://github.com/scikit-learn-contrib/scikit-dimension
cd scikit-dimension
pip install .
Quick start
Local and global estimators can be used in this way:
import skdim
import numpy as np
#generate data : np.array (n_points x n_dim). Here a uniformly sampled 5-ball embedded in 10 dimensions
data = np.zeros((1000,10))
data[:,:5] = skdim.datasets.hyperBall(n = 1000, d = 5, radius = 1, random_state = 0)
#estimate global intrinsic dimension
danco = skdim.id.DANCo().fit(data)
#estimate local intrinsic dimension (dimension in k-nearest-neighborhoods around each point):
lpca = skdim.id.lPCA().fit_pw(data,
n_neighbors = 100,
n_jobs = 1)
#get estimated intrinsic dimension
print(danco.dimension_, np.mean(lpca.dimension_pw_))
Citing and credits
Please cite Bac et al. (2021), Scikit-Dimension: A Python Package for Intrinsic Dimension Estimation, Entropy 23(10):1368, doi:10.3390/e23101368 (see CITATION.cff), together with the paper of each method you use (listed in its docstring).
Contributors are listed in AUTHORS.md; code adapted from other projects and its licences are listed in LICENSES_bundled.txt.
Related packages: DADApy (Glielmo et al., Patterns 2022), intrinsicDimension, Rdimtools, PCAtools.
Metadata
Release files for scikit-dimension 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scikit_dimension-0.5.0.tar.gz | 150.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scikit_dimension-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 314.2 kB
Release files / scikit_dimension-0.5.0.tar.gz
| Download URL | scikit_dimension-0.5.0.tar.gz |
|---|---|
| Size | 150.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a20eb024ff48dfe4bb8ebb4fed04bea77bfa43488b09ad32fbd2e317031ab46
|
|
BLAKE2b-256 checksum How to use checksums |
916183594751762c05cfb700b9801e1f0abad65b334c145c8fe37d2c27c777da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / scikit_dimension-0.5.0-py3-none-any.whl
| Download URL | scikit_dimension-0.5.0-py3-none-any.whl |
|---|---|
| Size | 163.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e973a8dc95ac3b02ed94739cb880552928d523a36fce90927120273826250d9
|
|
BLAKE2b-256 checksum How to use checksums |
fdccf6ce922cc56a0d249e768917031cf9191cc0cfd92564df643041df1a581c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency log