yasa.EpochByEpochAgreement.get_agreement_bystage#
- EpochByEpochAgreement.get_agreement_bystage(beta=1.0)[source]#
Return a
pandas.DataFrameof unweighted (i.e., one-vs-rest) agreement scores.- Parameters:
- betafloat
Weight of recall relative to precision in the F-score. Default is 1.0 (i.e., F1). See
sklearn.metrics.precision_recall_fscore_support.
- Returns:
- agreement
pandas.DataFrame A
DataFramewith agreement metrics as columns (fbeta,npv,precision,recall,specificity,support) and aMultiIndexwith session and sleep stage as rows.specificity(True Negative Rate) andnpv(Negative Predictive Value) are computed using a one-vs-rest confusion matrix per stage.
- agreement