Skip to content

distribution_based_score_function failing when n=1 #873

@swatts-ci

Description

@swatts-ci

Hey @joein - realised this fix wasn't sufficient.

When we get len(response) == 1:

  • We get a div by zero when calculating variance, as we are using Bessel's correction
  • Even without Bessel's correction, we'd get a div by zero later on when scaling the scores

We should instead not use the response when len(response) < 2

Originally posted by @swatts-ci in #815 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions