picasso#
Painting intracluster gas on gravity-only simulations
picasso
is a model that allows making predictions for the thermodynamic properties of the gas in massive dark matter halos from gravity-only cosmological simulations.
It combines an analytical model of gas properties as a function of gravitational potential with a neural network predicting the parameters of said model.
It is released here as a Python package, combining an implementation of the gas model based on JAX and flax, and models that have been pre-trained to reproduce gas properties from hydrodynamic simulations.
Why use picasso?#
picasso
presents a few advantages that make it particularly interesting to predict gas properties from gravity-only halos:
By combining neural networks and physical models, picasso
can make fast, accurate and precise predictions of intracluster gas thermodynamics.
Thanks to the use of JAX
and flax
in its numerical implementation, picasso
can make predictions that can be compiled just-in-time, accelerated on GPU/TPU, and automatically differentiable.
picasso
models can be trained to make predictions from extensive data inputs (e.g., from the full N-body particle distribution of a dark matter halo) or from minimal information (e.g., a halo catalog with only halo mass and concentration).
The picasso
library includes pre-trained models that can reasily be used to make predictions from various inputs.
Installation#
picasso
uses poetry
:
git clone git@github.com:fkeruzore/picasso.git
cd picasso
poetry install
# or, if you already have JAX and flax installed,
poetry install --without=jax
The latter option will not install or upgrade any package relying on JAX
, which can be useful to avoid messing up an existing install.
To install JAX
on your system, see JAX’s installation page.
Testing and benchmarking#
To test your installation of picasso
, you can install the tests
dependency group and run pytest
:
git clone git@github.com:fkeruzore/picasso.git
cd picasso
poetry install --with=tests
poetry run pytest
Some of the test also include basic benchmarking of model predictions using pytest-benchmark:
poetry run pytest --benchmark-enable
Learn more#
The picasso model
Citation#
If you use picasso
for your research, please cite the picasso
original paper:
@article{keruzore_picasso_2024,
title={The picasso gas model: Painting intracluster gas on gravity-only simulations},
author={F. Kéruzoré and others},
year={2024},
eprint={},
doi={},
url={},
}