Galpro

Galpro is a novel Python machine learning code based on the Random Forest algorithm for estimating multivariate posterior probability distributions of galaxy properties (e.g. redshift, stellar mass, star formation rate, metallicity).

_images/example_plot.png

Joint redshift - stellar mass posterior PDF (See Mucesh et al. 2020).

Installation

Galpro is hosted on PyPI and can be installed using:

pip install galpro

The latest source code is available on GitHub.

Getting started

To become familiar with the package, we recommend going through example Ipython notebooks. For ease of use, Galpro is built around a single core class Model.

Acknowledgements

Galpro is built on top of other excellent Python packages such as:

  • scikit-learn: for implementing the random forest algorithm.
  • joblib: for saving and loading a trained random forest model.
  • h5py: for reading and writing PDFs to disk.

Citation

If you use Galpro in your research, please include a citation to this work (Mucesh et al. 2020) in any of your publications.