Skip to main content

No project description provided

Project description

pz-rail-tpz

Template codecov PyPI

"Lite" version of Matias Carrasco-Kind's TPZ (Trees for Photo-z) regression-tree-based photo-z code. This initial version only implements the regression-tree mode, it does not implement the classification tree or SOM-based photo-z estimators. All credit on algorithm development and initial coding goes to Matias Carrasco-Kind.

If you use TPZ for any publication, in addition to RAIL, you should cite Matias' TPZ paper: Carrasco Kind, M., & Brunner, R. J., 2013 “TPZ : Photometric redshift PDFs and ancillary information by using prediction trees and random forests”, MNRAS, 432, 1483 Link

For more details on the algorith, see Matias's MLZ website: http://matias-ck.com/mlz/

For the regression tree mode, the current implementation includes generation of "random" data via Gaussian scatter on each of the attributes that contain an uncertainty, but it does not implement the out-of-bag error or varImportance sampling that are included in the full MLZ/TPZ package.

RAIL: Redshift Assessment Infrastructure Layers

This package is part of the larger ecosystem of Photometric Redshifts in RAIL.

Citing RAIL

RAIL is open source and may be used according to the terms of its LICENSE (BSD 3-Clause). If you used RAIL in your study, please cite this repository https://github.com/LSSTDESC/RAIL, and RAIL Team et al. (2025) https://arxiv.org/abs/2505.02928

@ARTICLE{2025arXiv250502928T,
       author = {{The RAIL Team} and {van den Busch}, Jan Luca and {Charles}, Eric and {Cohen-Tanugi}, Johann and {Crafford}, Alice and {Crenshaw}, John Franklin and {Dagoret}, Sylvie and {De-Santiago}, Josue and {De Vicente}, Juan and {Hang}, Qianjun and {Joachimi}, Benjamin and {Joudaki}, Shahab and {Bryce Kalmbach}, J. and {Kannawadi}, Arun and {Liang}, Shuang and {Lynn}, Olivia and {Malz}, Alex I. and {Mandelbaum}, Rachel and {Merz}, Grant and {Moskowitz}, Irene and {Oldag}, Drew and {Ruiz-Zapatero}, Jaime and {Rahman}, Mubdi and {Rau}, Markus M. and {Schmidt}, Samuel J. and {Scora}, Jennifer and {Shirley}, Raphael and {St{\"o}lzner}, Benjamin and {Toribio San Cipriano}, Laura and {Tortorelli}, Luca and {Yan}, Ziang and {Zhang}, Tianqing and {the Dark Energy Science Collaboration}},
        title = "{Redshift Assessment Infrastructure Layers (RAIL): Rubin-era photometric redshift stress-testing and at-scale production}",
      journal = {arXiv e-prints},
     keywords = {Instrumentation and Methods for Astrophysics, Cosmology and Nongalactic Astrophysics, Astrophysics of Galaxies},
         year = 2025,
        month = may,
          eid = {arXiv:2505.02928},
        pages = {arXiv:2505.02928},
          doi = {10.48550/arXiv.2505.02928},
archivePrefix = {arXiv},
       eprint = {2505.02928},
 primaryClass = {astro-ph.IM},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2025arXiv250502928T},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

Please consider also inviting the developers as co-authors on publications resulting from your use of RAIL by making an issue. A convenient list of what to cite may be found under Citing RAIL on ReadTheDocs. Additionally, several of the codes accessible through the RAIL ecosystem must be cited if used in a publication.

Citing this package

If you use this package, you should also cite the appropriate papers for each code used. A list of such codes is included in the Citing RAIL section of the main RAIL Read The Docs page.

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

pz_rail_tpz-1.1.5.tar.gz (94.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pz_rail_tpz-1.1.5-py3-none-any.whl (76.9 kB view details)

Uploaded Python 3

File details

Details for the file pz_rail_tpz-1.1.5.tar.gz.

File metadata

  • Download URL: pz_rail_tpz-1.1.5.tar.gz
  • Upload date:
  • Size: 94.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pz_rail_tpz-1.1.5.tar.gz
Algorithm Hash digest
SHA256 2c5ca96da4dfa02ed89f4c3dff641996ce4d0725f2061dd4f377e8f2641ddb79
MD5 0bd971c9d0f7200211d80ab3b3842ad7
BLAKE2b-256 5bb258b110e49781d4253210f4b8f1c4e392b97a847d5d78ebcbf1849a2436e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pz_rail_tpz-1.1.5.tar.gz:

Publisher: publish-to-pypi.yml on LSSTDESC/rail_tpz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pz_rail_tpz-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: pz_rail_tpz-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 76.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pz_rail_tpz-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5f5cc60dffc944954989d285f39ec35241de72e443ba7ceb0e4237d1213a4a24
MD5 31acd7fc3168b068712f9f2ba0d695b4
BLAKE2b-256 7fc59bcd78d0716e26de9d02d825ad6b5d8344cf8a1bd36530776319e40ea0b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pz_rail_tpz-1.1.5-py3-none-any.whl:

Publisher: publish-to-pypi.yml on LSSTDESC/rail_tpz

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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