Skip to main content

Inverse projection techniques for dimensionality reduction

Project description

Inverse Projections

A Python package implementing inverse projection techniques for dimensionality reduction. Map points from low-dimensional visualizations back to high-dimensional space.

Features

  • Neural Network Inverse (NNinv): Deep learning approach using PyTorch
  • Inverse LAMP (ILAMP): Local Affine Multidimensional Projection inverse mapping
  • RBF Inverse: Radial Basis Function interpolation
  • Multilateration: Geometric triangulation-based approach
  • Gradient Maps: Quality assessment for inverse projections

Installation

pip install inverse-projections

Quick Start

from inverse_projections import NNinv, ILAMP, RBFinv
import numpy as np
from sklearn.manifold import TSNE

# Your high-dimensional data
X = np.random.rand(1000, 50)

# Create 2D projection
X2d = TSNE().fit_transform(X)

# Train inverse projection
nninv = NNinv()
nninv.fit(X2d, X)

# Map new 2D points back to high-dimensional space
new_2d_points = np.random.rand(10, 2)
reconstructed = nninv.transform(new_2d_points)

Examples

See the examples/ directory for detailed demonstrations:

  • demo.ipynb: MNIST dataset comparison
  • demo_gradient_map.ipynb: Quality assessment with gradient maps

Methods

All methods follow sklearn-compatible API with fit(), transform(), and inverse_transform() methods.

Reference

Based on the following research papers:

  • iLAMP: dos Santos Amorim, E. P., Brazil, E. V., Daniels, J., Joia, P., Nonato, L. G., & Sousa, M. C. (2012). iLAMP: Exploring high-dimensional spacing through backward multidimensional projection. Proc. IEEE VAST. https://doi.org/10.1109/VAST.2012.6400489

  • RBFinv: Amorim, E., Vital Brazil, E., Mena-Chalco, J., Velho, L., Nonato, L. G., Samavati, F., & Costa Sousa, M. (2015). Facing the high-dimensions: Inverse projection with radial basis functions. Computers & Graphics. https://doi.org/10.1016/j.cag.2015.02.009

  • NNinv: Espadoto, M., Rodrigues, F. C. M., Hirata, N. S. T., & Hirata Jr, R. (2019). Deep Learning Inverse Multidimensional Projections. Proc. EuroVA. https://doi.org/10.2312/eurova.20191118

  • NNinv: Espadoto, M., Appleby, G., Suh, A., Cashman, D., Li, M., Scheidegger, C. E., Anderson, E. W., Chang, R., & Telea, A. C. (2021). UnProjection: Leveraging Inverse-Projections for Visual Analytics of High-Dimensional Data. IEEE TVCG. https://doi.org/10.1109/TVCG.2021.3125576

  • MDSinv: Blumberg, D., Wang, Y., Telea, A., Keim, D. A., & Dennig, F. L. (2024). Inverting Multidimensional Scaling Projections Using Data Point Multilateration. Proceed EuroVA

License

MIT License

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

inverse_projections-0.1.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

inverse_projections-0.1.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file inverse_projections-0.1.2.tar.gz.

File metadata

  • Download URL: inverse_projections-0.1.2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for inverse_projections-0.1.2.tar.gz
Algorithm Hash digest
SHA256 507229cc4eef446040705488b22bed22adb6f7502b17b4e5a5439390235ee773
MD5 364dab44dce97ac4f50e0fd826e93fd3
BLAKE2b-256 8735f2dc5e1fb0cca5e675a4b39358287278270155ff7b6e115d0bb0d1760a4c

See more details on using hashes here.

File details

Details for the file inverse_projections-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for inverse_projections-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 482a9364cfea63461a20a62172dd3dc28139e6f7ee2e2fc1e3aefb4481490216
MD5 9f70f873e11410150c261784c89ae8ff
BLAKE2b-256 172ebf5da2f4f1537726d0f6a35c257190668c3fe20e4dbb66e097d3fc44c57c

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