Giter Club home page Giter Club logo

exomdn's Introduction

ExoMDN

Rapid characterization of exoplanet interiors with Mixture Density Networks

MIT License DOI arxiv

ExoMDN is a machine-learning-based exoplanet interior inference model using Mixture Density Networks. The model is trained on more than 5.6 million synthetic planet interior structures. Given mass, radius, and equilibrium temperature, ExoMDN is capable of providing a full inference of the interior structure of low-mass exoplanets in under a second without the need for a dedicated interior model.

This repository contains the trained models shown Baumeister & Tosi 2023 (accepted in A&A), as well as Python notebooks to load the models and run interior predictions of exoplanets. Interactive widgets are included to simplify loading an MDN model and running a prediction. We also make available the training routines in more_examples/model_training_demo.ipynb.

Installation

Using conda (preferred)

Create a new conda environment named exomdn from the environment.yml file, which installs all the required packages:

conda env create -f environment.yml

Activate the environment:

conda activate exomdn

Then install the exomdn package by running

pip install -e .

Using pip

This project requires Python 3.7 or higher.

Install the required packages and dependencies using

pip install -r requirements.txt

Then install the exomdn package by running

pip install -e .

Required packages

  • python>=3.7
  • tensorflow=2.11
  • tensorflow-probability=0.15
  • scikit-learn=1.1.1
  • numpy
  • pandas
  • scipy
  • matplotlib
  • seaborn
  • joblib
  • ipywidgets
  • jupyter

Getting started

To get started check out introduction.ipynb. More in-depth examples can be found in the more_examples directory and more will be added over time. This directory also contains the training routines used to train the ExoMDN models, with some example trianing data to be found in the data directory.

Acknowledgements

We are using the MDN layer for Keras by https://github.com/cpmpercussion/keras-mdn-layer

exomdn's People

Contributors

philippbaumeister avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.