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 details)

Uploaded Source

File details

Details for the file astro-forecaster-2.0.2.tar.gz.

File metadata

  • Download URL: astro-forecaster-2.0.2.tar.gz
  • Upload date:
  • Size: 89.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.10

File hashes

Hashes for astro-forecaster-2.0.2.tar.gz
Algorithm Hash digest
SHA256 5bcc0da74e65c5b3257b0283b741cfb40dac1d58a16d6fa8dcb1932fd5647aed
MD5 010882d4793f1f9a8a905b6533a8bfad
BLAKE2b-256 bbcec06a53e957c7a2733216fc9f02d6998f695e8f65116dd7a9d0bc51d69621

See more details on using hashes here.

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