Previous question · 72
Kendall Tau Correlation
easyStatistics
Next question · 74
Spiral Matrix
mediumMath
Random coding question

73. Calibration error

medium
GeneralGeneral
staff
Function contract
Inputs
n_bins
int
y_prob
np.ndarray
y_true
np.ndarray
Returns
value
float

Examples

Input
{
  "n_bins": 5,
  "y_prob": [
    0.9,
    0.6,
    0.2,
    0.8,
    0.1
  ],
  "y_true": [
    1,
    0,
    1,
    1,
    0
  ]
}
Output
0.4

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
staff
senior
Tags
calibration-metrics
binning
numpy-vectorization
binary-classification

Similar Questions

Linear Regressionmedium
ML Coding
Activation function relueasy
ML Coding
Text normalizationmedium
ML Coding
35 people are solving this problem
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATAINTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run scriptExecute the current editor contents
submitGrade the current editor contents against all solution test cases
python ("print hello world")Run an isolated Python command
helpShow all available commands