Giter Site home page Giter Site logo

forecaster's Introduction

forecaster

Forecaster uses a probabilistic mass-radius relation as the underlying model.

It can forecast mass (radius) given radius (mass) measurements.

The conversion includes three sources of uncertainties, from measurement, model fitting (MCMC process), and intrinsic dispersion in radius.

See arXiv:1603.08614 for details.

If you use it, please cite it.

Usage

Check demo.ipynb for more details.

A simple example:

import numpy as np
import mr_forecast as mr

# predict the mean and std of radius given mass measurements

Rmedian, Rplus, Rminus = mr.Mstat2R(mean=1.0, std=0.1, unit='Earth', sample_size=100)

A simple interactive example:

print '=== Forecaster ==='
print ' '
print 'Example: Radius-to-Mass Conversion (without posteriors)'
print ' '
print 'Radius = A +/- B [Earth units]'
mean = float(raw_input("Enter A: "))
std = float(raw_input("Enter B: "))

# predict the mean and std of radius given mass measurements
Mmedian, Mplus, Mminus = mr.Rstat2M(mean, std, unit='Earth', sample_size=1e3, grid_size=1e3)
print ' '
print 'Mass = ',Mmedian,'+',Mplus,'-',Mminus,' M_earth'

forecaster's People

Contributors

chenjj2 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.