A modern Python library for cosmological parameter inference and emulation.
c2i2o provides a unified framework for bidirectional transformations in cosmological analysis:
Cosmological Parameters to/from Intermediate Data Products to/from Observables
- ** Fast Emulation**: Replace expensive simulations with trained emulators
- ** Flexible Inference**: Multiple inference backends (MCMC, nested sampling, SBI)
- ** Extensible**: Plugin architecture for custom emulators and observables
- ** Multi-Framework**: Interfaces to CCL, Astropy, PyTorch, TensorFlow
- ** Scalable**: Designed for diverse cosmological datasets
pip install c2i2opip install c2i2o[pytorch]pip install c2i2o[tensorflow]pip install c2i2o[cccl]pip install c2i2o[astropy]pip install c2i2o[db]pip install c2i2o[all]git clone https://github.com/KIPAC/c2i2o.git
cd c2i2o
pip install -e ".[dev]"Full documentation is available at c2i2o.readthedocs.io.
Build documentation locally:
cd docs
make html
open build/html/index.html # macOS
# or
xdg-open build/html/index.html # Linux