The velocity covariance emulator
Project description
veloce
Welcome to veloce, the velocity power spectrum covariance emulator! We use an emulator based on neural networks to accelerate the prediction of covariance matrices for different cosmologies in the context of supernovae studies. If you are interested and want to know more, check out the paper, raise an issue or contact Davide Piras.
Installation
To use the emulator and/or sample your supernovae posterior, follow these steps:
-
(optional)
conda create -n veloce python=3.11 jupyter ipython=8.20(create a customcondaenvironment withpython 3.11) -
(optional)
conda activate veloce(activate it) -
Install the package:
pip install velocemu python -c 'import velocemu'or alternatively, clone the repository and install it:
git clone https://github.com/dpiras/veloce.git cd veloce pip install . python -c 'import velocemu'
Usage
Cloning the repository will also give you access to all Jupyter notebooks, which include information on how to generate a single element of the covariance, use the emulator, and sample the posterior.
Trained models
You can find the available models in this folder, which will be updated when new models become available. Currently, we provide the model that leads to the final results of the paper, namely the nonlinear case with fixed $\sigma_{\rm u}$, but more models are in production. If you are interested in other models, please reach out or contact Davide Piras. Also note that it should be straightforward for you to train your own models using CosmoPower, and then add them under velocemu/trained_models.
Contributing and contacts
Feel free to fork this repository to work on it; otherwise, please raise an issue or contact Davide Piras.
Citation
If you use veloce, please cite the corresponding paper:
@ARTICLE{Piras25,
author = {{Piras}, Davide and {Sorrenti}, Francesco and {Durrer}, Ruth and {Kunz}, Martin},
title = "{Anchors no more: Using peculiar velocities to constrain $H_0$ and the primordial Universe without calibrators}",
journal = {arXiv e-prints},
year = 2025,
month = apr,
eid = {arXiv:2504.10453},
pages = {arXiv:2504.10453},
doi = {10.48550/arXiv.2504.10453},
archivePrefix = {arXiv},
eprint = {2504.10453},
primaryClass = {astro-ph.CO},
adsurl = {https://ui.adsabs.harvard.edu/abs/2025arXiv250410453P},
}
License
veloce is released under the GPL-3 license (see LICENSE) subject to the non-commercial use condition.
veloce
Copyright (C) 2025 Davide Piras & contributors
This program is released under the GPL-3 license (see LICENSE.txt), subject to a non-commercial use condition.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file velocemu-0.1.1.tar.gz.
File metadata
- Download URL: velocemu-0.1.1.tar.gz
- Upload date:
- Size: 5.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bba4a95fdb0cdf995bbcadeeff734d32fe4fdc5a907691b2567ad4e35774cc6
|
|
| MD5 |
6e941cafd8d3ef37008de89d550e369b
|
|
| BLAKE2b-256 |
96d3f031f215412b36c93cc04b1c41eb77bb6d31d829c29298d8a1ae37f70f19
|
File details
Details for the file velocemu-0.1.1-py3-none-any.whl.
File metadata
- Download URL: velocemu-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3563d8ad093dedbcc7ba94ffe8a76724ed1acbd751c9dcf983f535cee2184e1d
|
|
| MD5 |
ed830289913c5581d5b828e57b69bd31
|
|
| BLAKE2b-256 |
db6e0ceef0b0a49892e24fb1385f62a9ca67ecc450c1e797efc898e64c6a75b4
|