Skip to main content

API Reference

Package src/astrovision (import as src.astrovision from the repository root, as the notebooks do). Signatures below are read from the source; the code is the reference when they diverge.

Documented modules​

PageModuleMain objects
models.pymodels.pySimpleCNN, EfficientNetGalaxy, build_model
trainer.pytrainer.pytrain
morphometry.pymorphometry.pyGalaxyMorphometry, batch_morphometry, plot helpers
gradcam.pygradcam.pyGradCAM, plot_gradcam_grid
crossmatcher.pycrossmatcher.pyGalaxy10Crossmatcher

Modules without a dedicated page​

ModuleContentWhere it is described
data_loader.pydownload_galaxy10, Galaxy10Dataset, get_transforms, load_galaxy10_splits, CLASS_NAMESData Preparation
fusion.pyGalaxyFusionClassifier, FusionDataset, build_fusion_datasets, train_fusion, evaluate_fusion, ablation_studyLate-Fusion
uncertainty.pyMCDropoutPredictor, TemperatureScaler, ConformalPredictor, find_most_uncertainUncertainty
unet.py, segmenter.pyUNet, CombinedLoss, train_unet; OtsuSegmenter, DINOv2PatchSegmenter, SAMSegmenterU-Net, Run Segmentation
attention_morphometry.pyextract_attention_map, attention_to_mask, AttentionMorphometryAttention
synthesis.py, spectral_viz.pymaster table, correlation and synthesis figures, colour–magnitude plotsPhysical Interpretation

src/astrovision/__init__.py re-exports load_galaxy10_splits, CLASS_NAMES, download_galaxy10, SimpleCNN, EfficientNetGalaxy, build_model, train, GradCAM and plot_gradcam_grid.