Skip to main content

A modification of umap that incorporates local scale into the embedding.

Project description

ScaleMAP

ScaleMAP is a modification of UMAP that incorporates local scale into the embedding.

This package is currently a quick release. It is derived from umap-learn and keeps the same scikit-learn-style estimator interface.

Installation

pip install scalemap

Usage

import scaleMAP

mapper = scaleMAP.UMAP(scalemap=True, scale_lambda=1.0)
embedding = mapper.fit_transform(data)

The distribution name on PyPI is scalemap; the import package is scaleMAP. If you don't set scalemap=True, it will behave just like UMAP. scale_lambda=1.0 sets the scaleMAP behavior to be fully on. You can interpolate between fully on and fully off by setting values between 0.0 and 1.0.

Attribution

ScaleMAP is derived from umap-learn by Leland McInnes and contributors. The upstream project is available at:

https://github.com/lmcinnes/umap

The upstream UMAP package is BSD 3-Clause licensed. ScaleMAP is distributed under the same license. See LICENSE and NOTICE.md.

If you use this package in scientific work, cite the original UMAP work as appropriate:

@article{mcinnes2018umap-software,
  title={UMAP: Uniform Manifold Approximation and Projection},
  author={McInnes, Leland and Healy, John and Saul, Nathaniel and Grossberger, Lukas},
  journal={The Journal of Open Source Software},
  volume={3},
  number={29},
  pages={861},
  year={2018}
}

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

scalemap-0.1.1.tar.gz (110.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scalemap-0.1.1-py3-none-any.whl (113.7 kB view details)

Uploaded Python 3

File details

Details for the file scalemap-0.1.1.tar.gz.

File metadata

  • Download URL: scalemap-0.1.1.tar.gz
  • Upload date:
  • Size: 110.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for scalemap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1d10b264de12915ec7ca8302a7aebf581307dbda1953c56794a6f15287bb4d39
MD5 25384aa6d20642c6157daeeeba3855e0
BLAKE2b-256 b84d509a526c5c39e06565c9e02a369d3fcd7cbd64acfd10c87dedde8197ef35

See more details on using hashes here.

File details

Details for the file scalemap-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scalemap-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 113.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for scalemap-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c74477d3cff50b3895e8871cb24c364f89710d9c17b19edc12a8bfb7f72324d
MD5 b0d8a8332b1c0bbf020d7335945da971
BLAKE2b-256 9ef077918af54dfa1b5a321d1617a200ee9db7a354ede2a027aafde9df8b8c6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page