Skip to main content

a deterministic, multi-scale, ensemble manifold embedding with high-dimensional support and near-linear scaling

Project description

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()

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

detmap-0.1.5.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

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

detmap-0.1.5-py3-none-any.whl (57.4 kB view details)

Uploaded Python 3

File details

Details for the file detmap-0.1.5.tar.gz.

File metadata

  • Download URL: detmap-0.1.5.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.12

File hashes

Hashes for detmap-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f9d82136f9de11c0ccf70488409f8eabd7b943a2a0aae0461d6927004f0c6eed
MD5 7291a49573149f6355aba03258d68c4c
BLAKE2b-256 eb3ec16dde407f021d4f8876dbe60033ec8e84c7058c1df6f0b935235d8edd20

See more details on using hashes here.

File details

Details for the file detmap-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: detmap-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 57.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.12

File hashes

Hashes for detmap-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5e4a325fd200da8657a48f74358a268e1ee46982643021909eadb45da8dff7f9
MD5 82eee94f53479fcd1dbfc37f9b3b48f5
BLAKE2b-256 07cd216a36a6c96facc239f8e75cb0ab584d605383a6613784f676c3c0c3d377

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