Previous question · 147
Fizz Buzz
easyMath
Next question · 149
Reduce Array Size to The Half
mediumAlgorithms
Random coding question

148. Bias variance decomposition

medium
GeneralGeneral
senior
Function contract
Inputs
y_true
np.ndarray
predictions
np.ndarray
Returns
value
list

Examples

Input
{
  "y_true": [
    3,
    5
  ],
  "predictions": [
    [
      2,
      6
    ],
    [
      4,
      4
    ],
    [
      3,
      5
    ]
  ]
}
Output
[
  0,
  0.6666666666666666,
  0
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
bias-variance
numpy-vectorization
mean-squared-error
statistics

Similar Questions

Linear Regressionmedium
ML Coding
Activation function relueasy
ML Coding
Text normalizationmedium
ML Coding
36 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