Results

class rocky_worlds_data_challenge.Results(photometry_GJ_3929_b: Photometry, posterior_GJ_3929_b: Posterior, form_GJ_3929_b: Form, photometry_LHS_1140_b: Photometry, posterior_LHS_1140_b: Posterior, form_LHS_1140_b: Form)[source]

Bases: object

Complete challenge submission for both target planets.

Variables:
  • photometry_GJ_3929_b (Photometry) – Reduced photometry products for GJ 3929 b.

  • posterior_GJ_3929_b (Posterior) – Posterior samples for GJ 3929 b.

  • form_GJ_3929_b (Form) – Completed questionnaire responses for GJ 3929 b.

  • photometry_LHS_1140_b (Photometry) – Reduced photometry products for LHS 1140 b.

  • posterior_LHS_1140_b (Posterior) – Posterior samples for LHS 1140 b.

  • form_LHS_1140_b (Form) – Completed questionnaire responses for LHS 1140 b.

Store all components needed for one complete submission.

Parameters:
  • photometry_GJ_3929_b (Photometry) – Reduced photometry products for GJ 3929 b.

  • posterior_GJ_3929_b (Posterior) – Posterior samples for GJ 3929 b.

  • form_GJ_3929_b (Form) – Completed questionnaire responses for GJ 3929 b.

  • photometry_LHS_1140_b (Photometry) – Reduced photometry products for LHS 1140 b.

  • posterior_LHS_1140_b (Posterior) – Posterior samples for LHS 1140 b.

  • form_LHS_1140_b (Form) – Completed questionnaire responses for LHS 1140 b.

Attributes Summary

form_GJ_3929_b

Completed questionnaire responses for GJ 3929 b.

form_LHS_1140_b

Completed questionnaire responses for LHS 1140 b.

photometry_GJ_3929_b

Reduced photometry products for GJ 3929 b.

photometry_LHS_1140_b

Reduced photometry products for LHS 1140 b.

posterior_GJ_3929_b

Posterior samples for GJ 3929 b.

posterior_LHS_1140_b

Posterior samples for LHS 1140 b.

Methods Summary

load([filepath, validate])

Load a complete submission ZIP archive.

to_submission([filepath, overwrite])

Write a Kaggle submission ZIP archive.

validate([verbose])

Validate all photometry, posterior, and form objects.

Attributes Documentation

form_GJ_3929_b: Form

Completed questionnaire responses for GJ 3929 b.

form_LHS_1140_b: Form

Completed questionnaire responses for LHS 1140 b.

photometry_GJ_3929_b: Photometry

Reduced photometry products for GJ 3929 b.

photometry_LHS_1140_b: Photometry

Reduced photometry products for LHS 1140 b.

posterior_GJ_3929_b: Posterior

Posterior samples for GJ 3929 b.

posterior_LHS_1140_b: Posterior

Posterior samples for LHS 1140 b.

Methods Documentation

classmethod load(filepath='submission.zip', validate=True)[source]

Load a complete submission ZIP archive.

Parameters:
  • filepath (path-like, optional) – Path to the submission ZIP archive.

  • validate (bool, optional) – Validate the loaded submission before returning it.

Returns:

Complete submission reconstructed from the archive.

Return type:

Results

Raises:

ValueError – If validate is True and any loaded component is invalid.

to_submission(filepath='submission.zip', overwrite=False)[source]

Write a Kaggle submission ZIP archive.

The archive contains exactly:

posterior_LHS1140b.txt posterior_GJ3929b.txt lc_GJ3929b.h5 lc_LHS1140b.h5 form_GJ3929b.json form_LHS1140b.json

The posterior .txt files contain CSV-formatted text.

Parameters:
  • filepath (path-like, optional) – Destination path for the submission ZIP archive.

  • overwrite (bool, optional) – Allow an existing file at filepath to be replaced.

Returns:

Absolute path to the written ZIP archive.

Return type:

str

Raises:
  • FileExistsError – If filepath already exists and overwrite is False.

  • ValueError – If any contained photometry, posterior, or form object fails validation.

validate(verbose=True)[source]

Validate all photometry, posterior, and form objects.

Parameters:

verbose (bool, optional) – Print a confirmation message after each component validates.

Raises:

ValueError – If any contained photometry, posterior, or form object is invalid.