output
- QhX.output.classify_period(row)[source]
Classify the detected period as ‘reliable’, ‘medium reliable’, ‘poor’, or ‘NAN’ based on the significance of the detected period, the relative lower and upper errors, and the IoU of the error circles provided in function classify_periods.
Parameters:
row (pd.Series): A row from the DataFrame containing detected period data.
Returns:
str: Classification of the period (‘reliable’, ‘medium reliable’, ‘poor’, ‘NAN’).
- QhX.output.classify_periods(detected_periods)[source]
Calculates IoU and compile other metrics (low errors, upper errors, significance of detected period, and band pairs) for each quasar ID. It computes Intersection Over Union (IoU) and other relevant metrics for each quasar ID based on detected periods in different band pairs, while preserving NaN values.
Parameters:
detected_periods (list of dict): List of dictionaries containing detected period data.
Returns:
pd.DataFrame: DataFrame containing the classification results.