Skip to content
DeepForgeby svx
All problems
EasyML Fundamentalsml-244

Brier Skill Score

Problem

Compute the Brier skill score versus a reference: 1 - brier_model / brier_reference.

Return 0.0 when the reference score is 0.

Hint

Positive skill means the model beats the reference forecast.

Test cases

case 1
in: [0.1,0.25]
expected: 0.6
case 2
in: [0.3,0.2]
expected: -0.4999999999999998
case 3
in: [0.2,0]
expected: 0
case 4
in: [0.5,0.5]
expected: 0
Starter codePython
def brier_skill_score(brier_model, brier_reference):
    # Your code here
    pass

4 test cases · run your code against them in the editor