Skip to main content

Tests Documentation Status PyPI License Downloads

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.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scikit-dimension 0.6.1
File Size Uploaded Provenance Actions
scikit_dimension-0.6.1.tar.gz 160.1 kB With provenance Details for scikit_dimension-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scikit-dimension 0.6.1
File Interpreter ABI Platform Actions
scikit_dimension-0.6.1-py3-none-any.whl Python 3 none any Details for scikit_dimension-0.6.1-py3-none-any.whl

Total release size: 333.8 kB

Release files / scikit_dimension-0.6.1.tar.gz

Download URL scikit_dimension-0.6.1.tar.gz
Size 160.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d065cc84bcef4ba876228922bbec6f88fe0296809f1bf164654b5346bbb253d9
BLAKE2b-256 checksum
How to use checksums
282a50613e7c4de8cf0a13c8086384e67b65433735ab925cbd5094c1acfcfb29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Release files / scikit_dimension-0.6.1-py3-none-any.whl

Download URL scikit_dimension-0.6.1-py3-none-any.whl
Size 173.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
195db7eec55eabd1333c713320b3eebbcc8b748218bd9db841e5c162f2ae0f17
BLAKE2b-256 checksum
How to use checksums
7e2778539112dca4dc9724869b3fe8e7d80bd023eeba330ccf5d7f234b6e04d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Security for scikit-dimension 0.6.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scikit_dimension-0.6.1.tar.gz

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 Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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