How obananas/gmae works
GMAE is a research codebase for generalized multi-view representation learning, with separate classification and clustering entry points. Both load MAT-format views, train a shared/view-specific autoencoder, and evaluate learned representations; classification also uses a prediction head, while clustering applies K-means. The graph preserves the documented reconstruction, alignment, adversarial, and contrastive objectives, plus preprocessing and reporting. Connections are limited to calls shown in excerpts or relationships explicitly documented in the README; unsampled implementation details are not inferred.
Main entry points: classification.py Classification task · clustering.py Clustering task · models.py GMAE representations · dataloader.py MAT data loader
Components 16
Task workflows
- Classification task
classification.py - Clustering task
clustering.py
Data and sampling
- MAT data loader
utils/dataloader.py - Multi-view dataset
utils/dataloader.py - Digits-2V data
dataset/Digits-2V.mat - Neighbor sampling
clustering.py
Representation learning
- View encoders
models.py - View decoders
models.py - View discriminators
models.py - GMAE representations
models.py - Classification head
models.py - Training objectives
loss.py
Evaluation and reporting
- Clustering metrics
utils/metric.py - Run logger
utils/Logger.py - Metric plots
utils/plot.py
Other components
- Research user
Connections 23
- Research user → Classification task: runs task
README.md - Research user → Clustering task: runs task
README.md - Classification task → MAT data loader: loads dataset
classification.py - Clustering task → MAT data loader: loads dataset
clustering.py - MAT data loader → Digits-2V data: reads MAT data
utils/dataloader.py - MAT data loader → Multi-view dataset: builds dataset
utils/dataloader.py - Classification task → Multi-view dataset: perturbs views
classification.py - Classification task → Neighbor sampling: samples neighbors
classification.py - Clustering task → Neighbor sampling: prepares neighbors
clustering.py - Classification task → GMAE representations: invokes model
classification.py - Clustering task → GMAE representations: invokes model
clustering.py - GMAE representations → View encoders: encodes views
models.py - GMAE representations → View decoders: reconstructs views
models.py - GMAE representations → View discriminators: evaluates latents
models.py - GMAE representations → Classification head: classifies representation
models.py - Classification task → Training objectives: computes losses
classification.py - Clustering task → Training objectives: computes losses
clustering.py - Classification task → Clustering metrics: evaluates predictions
classification.py - Clustering task → Clustering metrics: evaluates clusters
clustering.py - Classification task → Run logger: records results
classification.py - Clustering task → Run logger: records results
clustering.py - Classification task → Metric plots: plots metrics
classification.py - Clustering task → Metric plots: plots metrics
clustering.py