Skip to main content

DMT-HI: MOE-based Hyperbolic Interpretable Deep Manifold Transformation for Unspervised Dimensional Reduction

(Our Paper)[https://arxiv.org/abs/2410.19504]

The code includes the following modules:

  • Datasets (Mnist, CIFAR-10, HCL, 20newsgroups)
  • Training for DMT-HI
  • Evaluation metrics
  • Visualisation
  • Explainable Analyses

Configurating python environment

We recommend using conda for configuration. You can refer to our install-env.sh to configure the environment.

conda create -n nml python=3.9
conda activate nml
bash install_env.sh

Dataset

This project utilizes several datasets, including 20NG, HCL, MNIST, and CIFAR-10. Please follow the instructions below to understand the dataset structure and usage.

1. 20NG Dataset

The 20NG dataset is already included in this GitHub repository.

2. HCL Dataset

The HCL dataset must be manually downloaded from the following link: Download HCL Dataset. Once downloaded, please place the file HCL60kafter-elis-all.h5ad into the data_path/ directory.

3. MNIST and CIFAR-10 Datasets

The MNIST and CIFAR-10 datasets do not require manual download. These datasets will be automatically downloaded upon the first execution of the project. Please ensure that you have a stable internet connection during the first run to automatically download these datasets.

Run DMT-HI

You can run DMT-HI with a single line of code to get latent embedding.

Minimun replication

Running minimal replication can be done with the following command:

python main.py fit -c=conf_new/nml4/mnist.yaml

Analyses

After successfully running DMT-HI for the first time, you can use the built-in analyzer to further explore the results. Follow the steps below to configure and run the analyzer.

Steps to Use the Analyzer

  1. Open dash_main.py File:
    Navigate to the file dash_main.py in the project directory.

  2. Modify the Model and Image Paths:
    In dash_main.py, update the following lines to match the model and image outputs generated by DMT-HI:

    • Line 14: Set the path to the saved model generated by DMT-HI.
    • Line 17: Set the path to the saved images generated during the model run.
  3. Run the Analyzer:
    After making the necessary changes, run the following command to start the analyzer:

    python dash_main.py
    
  4. Access the Analyzer:
    Once the script is running, it will return a local URL. Open the URL in your web browser to access the DMT-HI Analyzer.

Through this web-based interface, you can visualize latent embeddings.

Metadata

Release files for dmt-learn 0.0.81

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

Source distribution (sdist)

Source distribution for dmt-learn 0.0.81
File Size Uploaded
dmt_learn-0.0.81.tar.gz 66.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dmt-learn 0.0.81
File Interpreter ABI Platform
dmt_learn-0.0.81-py3-none-any.whl Python 3 none any Details

Total release size: 138.5 kB

Release files / dmt_learn-0.0.81.tar.gz

Download URL dmt_learn-0.0.81.tar.gz
Size 66.7 kB
Tags Source
SHA-256 checksum
How to use checksums
280a2b5410b7c3f5057b26452b2a8ca614b9d492cd2355a3e806d897f851f290
BLAKE2b-256 checksum
How to use checksums
ca19d67bbb0ece0c9f2025fe1b3e5fd948c3efc556e68a55261ed2423e8f70d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / dmt_learn-0.0.81-py3-none-any.whl

Download URL dmt_learn-0.0.81-py3-none-any.whl
Size 71.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daf9e42ed694128385f36a4becd5c0e97d8a47d726243084dde7b1ffd9ff1ec7
BLAKE2b-256 checksum
How to use checksums
f89e8cdc83e06d281e34f1dd16dc4c3ae0eb53f69c0d23329cb4265802cf5738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.0.81 This release

2 release files

0.0.80

2 release files

0.0.79

2 release files

0.0.78

2 release files

0.0.77

2 release files

0.0.76

2 release files

0.0.75

2 release files

0.0.74

2 release files

0.0.33

2 release files

0.0.32

2 release files

0.0.31

2 release files

0.0.30

2 release files

0.0.29

2 release files

0.0.28

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

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