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 = MDS().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.1.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.1-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inverse_projections-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f84ee8f7ba1498f66f85e66dd77b4314efab104c7d7aa988df46c2928c7b9839
MD5 a810d9280f5b98cefe683403a0b158d4
BLAKE2b-256 bbe246155fed44cfd141827e1312f045d0e9fdc72af8a69a4c9fd6159cfb4ef9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for inverse_projections-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a53ac39b21736d01e3d2dee9c5a8b95be2000a6103c49bf7ded8c9f1f6fc114c
MD5 4d0f3c98bef9afe6dc0a418e31deba14
BLAKE2b-256 4f6bcb362da810056bc51e76aec20390d38671f214f58cec723d9eaed073e8b8

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