Skip to content

CosmoStat/SHINE

Repository files navigation

SHINE: SHear INference Environment

SHINE Logo

A JAX-powered framework for probabilistic shear estimation in weak gravitational lensing

Python JAX PyPI Docs License All Contributors


🌟 Overview

SHINE (SHear INference Environment) is a modern, high-performance framework for probabilistic shear estimation in weak gravitational lensing studies. Built on JAX, it leverages automatic differentiation and just-in-time compilation to deliver fast, scalable inference for cosmological applications.

✨ Key Features

  • 🚀 JAX-powered: Automatic differentiation and JIT compilation for optimal performance
  • 📊 Probabilistic Inference: Full posterior distributions for shear estimates
  • 🔧 Modular Design: Flexible architecture for easy extension and customization
  • 🎯 GPU Acceleration: Seamless GPU support for large-scale analyses
  • 📈 Scalable: Efficient handling of large imaging surveys

📦 Installation

pip install shine-wl

For development (editable install from source):

git clone https://github.com/CosmoStat/SHINE.git
cd SHINE
pip install -e ".[dev,test]"

🚀 Quick Start

Run inference from a config file

SHINE is driven by YAML configuration files. Any parameter specified as a distribution (e.g. type: Normal) becomes a latent variable; everything else is fixed. To run the full pipeline (data generation → model building → MCMC):

python -m shine.main --config configs/test_run.yaml

Results (posterior samples in NetCDF format) are saved to the results/ directory by default. Override with --output:

python -m shine.main --config configs/test_run.yaml --output my_output/

Pedagogical example

For a step-by-step walkthrough that builds the config inline and plots diagnostics, see examples/shear_inference.py:

python examples/shear_inference.py

📖 Documentation

Full documentation is available at cosmostat.github.io/SHINE, including:

🏗️ Status

⚠️ Early Development: This project is under active development. APIs may change.

🤝 Contributing

We welcome contributions! This project is in early development, and we're excited to collaborate with the community. Thanks goes to these wonderful people (emoji key):

Ezequiel Centofanti
Ezequiel Centofanti

🤔 📆
Samuel Farrens
Samuel Farrens

🤔 📆
Emma Ayçoberry
Emma Ayçoberry

🤔 📆
Francois Lanusse
Francois Lanusse

🤔 📆

This project follows the all-contributors specification. Contributions of any kind welcome!


Born at CosmoStat, built with ❤️ for the astro community.

About

CosmoStat's SEear INference Environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages