Giter Site home page Giter Site logo

mardom / variational-diffusion-cdm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from victoriaono/variational-diffusion-cdm

0.0 0.0 0.0 45.03 MB

Diffusion generative model for DM reconstruction

Home Page: https://arxiv.org/abs/2403.10648

Python 0.60% Jupyter Notebook 99.40%

variational-diffusion-cdm's Introduction

Diffusion generative model for reconstruction of dark matter fields from galaxies

Victoria Ono, Core Francisco Park, Nayantara Mudur et al.

arXiv

Figure

Abstract

We develop a diffusion generative model to reconstruct dark matter fields from galaxies. The diffusion model is trained on the CAMELS simulation suite that contains thousands of state-of-the-art galaxy formation simulations with varying cosmological parameters and sub-grid astrophysics. We demonstrate that the diffusion model can predict the unbiased posterior distribution of the underlying dark matter fields from the given stellar mass fields, while being able to marginalize over uncertainties in cosmological and astrophysical models.

Dataset

The CAMELS Multifield Dataset used to train the model can be found here.

Code overview

  • The diffusion model is defined in model/vdm_model.py, with auxiliary utilities (noise schedules, drawing figures in a logger) in model/utils/utils.py. The model is based on the google-research/vdm repo.
  • The score model is called from model/networks.py.
  • The data directory contains files for constructing the PyTorch DataLoaders for the training datasets.
  • The notebooks directory contains notebooks used to produce results for the paper.

Citation

If you use this code, please cite our paper:

@misc{ono2024debiasing,
      title={Debiasing with Diffusion: Probabilistic reconstruction of Dark Matter fields from galaxies with CAMELS}, 
      author={Victoria Ono and Core Francisco Park and Nayantara Mudur and Yueying Ni and Carolina Cuesta-Lazaro and Francisco Villaescusa-Navarro},
      year={2024},
      eprint={2403.10648},
      archivePrefix={arXiv},
      primaryClass={astro-ph.CO}
}

variational-diffusion-cdm's People

Contributors

victoriaono avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.