parsnip.parse_dataset

parsnip.parse_dataset(dataset, path_or_name=None, kind=None, reject_invalid=True, require_redshift=True, label_map=None, valid_classes=None, verbose=True)

Parse a dataset from the lcdata package.

We cut out observations that are not relevant for the ParSNIP model (e.g. galactic ones), and update the class labels.

We try to guess the kind of dataset from the filename. If this doesn’t work, specify the kind explicitly instead.

Parameters:
  • dataset (Dataset) – Dataset to parse

  • path_or_name (str, optional) – Name of the dataset, or path to it, by default None

  • kind (str, optional) – Kind of dataset, by default None

  • reject_invalid (bool, optional) – Whether to reject invalid light curves, by default True

  • label_map (dict, optional) – Overwriting the default classification label mapping with a custom dict

  • verbose (bool, optional) – If true, print parsing information, by default True

Returns:

Parsed dataset

Return type:

Dataset