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

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.0
File Size Uploaded Provenance Actions
scikit_dimension-0.6.0.tar.gz 159.9 kB With provenance Details for scikit_dimension-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 333.3 kB

Release files / scikit_dimension-0.6.0.tar.gz

Download URL scikit_dimension-0.6.0.tar.gz
Size 159.9 kB
Tags Source
SHA-256 checksum
How to use checksums
acad933df100886a4ce33cbefff742161c1ee17e11deea8416e70cba8e2cd761
BLAKE2b-256 checksum
How to use checksums
4e7691077a2a1e17757f4d2b6644656c741c8315b6f6f687351f935ba2d05c69
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.0-py3-none-any.whl

Download URL scikit_dimension-0.6.0-py3-none-any.whl
Size 173.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c629bfa85c7b9d5c5cf92ac0bbe66d6a363874abe3f6a134210dab0c4e8e90e6
BLAKE2b-256 checksum
How to use checksums
5c7f4f80e46b4c3956e5cbfb144bbb4fd7681447a2f7474efff5588b4d8d3516
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.0

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