Skip to main content

DetMap

A deterministic, SFC (space-filling curve)-based, multi-projection, multi-scale, ensemble manifold embedding with high-dimensional support and near-linear scaling

Intended usage pattern

import pandas as pd
from detmap import DetMap,DetSFCMap,DhieMap,DMap
import jax.numpy as jnp

detmap = DetMap(reduced_dims=2)

if True :
    analytes = pd.read_csv('../data/analytes.tsv',sep='\t',index_col=0 )
    analytes .columns = [c.split('.')[0] for c in analytes.columns]
    labels = None
else :
    # data https://zenodo.org/records/7246239/files/data.zip?download=1
    analytes = pd.read_csv('../data/mnist_data.tsv',sep='\t',index_col=0 )
    labels = [str(s) for s in pd.read_csv('../data/mnist_target.tsv',sep='\t',index_col=0 ).values.tolist()]

X_embedded = detmap.fit_transform(jnp.array(analytes.values))
sdf = pd.DataFrame(X_embedded,index=analytes.index,columns=['comp'+str(i) for i in range(X_embedded.shape[1])])

if labels is None :
    from detmap import multivariate_aligned_pca
    scores, loadings = multivariate_aligned_pca(analytes)
    labels = scores['Owner'].values.tolist()

from detmap.visual import plot_colored_points , plot_colored_points_with_hover

plot_colored_points( x = sdf['comp0'].values ,
                     y = sdf['comp1'].values ,
                     labels = labels )

import matplotlib.pyplot as plt
plt.show()

Release files for detmap 0.1.5

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

Source distribution (sdist)

Source distribution for detmap 0.1.5
File Size Uploaded
detmap-0.1.5.tar.gz 45.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for detmap 0.1.5
File Interpreter ABI Platform
detmap-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 103.3 kB

Release files / detmap-0.1.5.tar.gz

Download URL detmap-0.1.5.tar.gz
Size 45.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f9d82136f9de11c0ccf70488409f8eabd7b943a2a0aae0461d6927004f0c6eed
BLAKE2b-256 checksum
How to use checksums
eb3ec16dde407f021d4f8876dbe60033ec8e84c7058c1df6f0b935235d8edd20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.12

Release files / detmap-0.1.5-py3-none-any.whl

Download URL detmap-0.1.5-py3-none-any.whl
Size 57.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e4a325fd200da8657a48f74358a268e1ee46982643021909eadb45da8dff7f9
BLAKE2b-256 checksum
How to use checksums
07cd216a36a6c96facc239f8e75cb0ab584d605383a6613784f676c3c0c3d377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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