Skip to main content

Probabilistically forecast astronomical masses and radii

Project description

astro-forecaster (forecaster 2ish)



An internally overhauled but fundamentally similar version of Forecaster by Jingjing Chen and David Kipping, originally presented in Probabilistic Forecasting of the Masses and Radii of Other Worlds and hosted at here.

The model itself has not changed- no new data was included and the hyperparameter file was not regenerated. All functions were rewritten to take advantage of Numpy vectorization and some additional user features were added.

Installation and basic use


To install this package with pip, run

pip install astro-forecaster

As a basic example, here is how you would calculate the radius posterior of a 1 Jupiter mass object:

import forecaster
import numpy as np

forecasted_radius_posterior = forecaster.Mpost2R(np.ones(int(1e3)), unit='Jupiter', classify=False)

See the demo notebook for more examples.

Changes


Changes include but are not limited to:

  • Rewriting all functions to take advantage of Numpy vectorization
  • Including the ability to input asymmetric uncertainties in mass or radius
  • Enabling pip installation

Citation


If used, please cite the original Forecaster paper and the bibcode for this implementation eventually hosted on the Astrophysics Source Code Library (ASCL).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astro-forecaster-2.0.2.tar.gz (89.3 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page