Previous question · 858
Highest-Priced Items by Category
easyDatabase
Next question · 860
Snapshot Array
mediumData Structures
Random coding question

859. Bootstrap confidence intervals

medium
GeneralGeneral
senior
Function contract
Inputs
seed
int
alpha
float
metric
str
y_pred
np.ndarray
y_true
np.ndarray
n_bootstrap
int
Returns
value
tuple

Examples

Input
{
  "seed": 123,
  "alpha": 0.05,
  "metric": "accuracy",
  "y_pred": [
    0.9,
    0.2,
    0.6,
    0.4,
    0.1
  ],
  "y_true": [
    1,
    0,
    1,
    1,
    0
  ],
  "n_bootstrap": 200
}
Output
[
  0.4,
  1
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
bootstrap
confidence-interval
numpy
evaluation-metrics

Similar Questions

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