Skip to content

Simplify API #68

@yhoiseth

Description

@yhoiseth

Inspired by #60 and #61, I’ve been thinking about how to make the API as simple as possible.

The simplest case is for binary (true/false) predictions. We could, for example, have something like this:

import predictionscorer

probabilities = [A, B, C]

binary = predictionscorer.Binary(probabilities)

print(binary.brier_scores) # (X, Y, Z)

Here, the user inputs the probabilities chosen for the true alternative as a sequence, and can access the scores.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions