Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling single class in chunk for CBPE #384

Merged
merged 3 commits into from
May 2, 2024
Merged

Commits on May 2, 2024

  1. Fix handling single class in CBPE fitting

    The `confusion_matrix` function used in various CBPE metrics returns
    values for each class/label present in the input. For binary
    classification this means we expect 4 values (TP, FP, FN, TN). However
    if only one class is represented in the input, the function will only
    return one value.
    
    This commit addresses that failure case by explicitly providing the
    expected labels to the `confusion_matrix` function. Currently these
    values are hard-coded for binary classification, but we may want to
    derive them from the input later on if we were to support string-based
    pass/fail classes.
    michael-nml committed May 2, 2024
    Configuration menu
    Copy the full SHA
    497c4df View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a793cf4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    730ae35 View commit details
    Browse the repository at this point in the history