Skip to main content

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

Release files for astro-forecaster 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for astro-forecaster 2.0.2
File Size Uploaded
astro-forecaster-2.0.2.tar.gz 89.3 MB Details

Release files / astro-forecaster-2.0.2.tar.gz

Download URL astro-forecaster-2.0.2.tar.gz
Size 89.3 MB
Tags Source
SHA-256 checksum
How to use checksums
5bcc0da74e65c5b3257b0283b741cfb40dac1d58a16d6fa8dcb1932fd5647aed
BLAKE2b-256 checksum
How to use checksums
bbcec06a53e957c7a2733216fc9f02d6998f695e8f65116dd7a9d0bc51d69621
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.10

Release history Release notifications | RSS feed

This release

2.0.2 This release

1 release file

2.0.1

1 release file

2.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page