Previous question · 1072
Binary Tree Zigzag Level Order Traversal
mediumData Structures
Next question · 1074
Recall Score
mediumML Coding
Random coding question

1073. Precision recall curve

medium
GeneralGeneral
senior
Function contract
Inputs
y_true
np.ndarray
y_score
np.ndarray
Returns
value
tuple

Examples

Input
{
  "y_true": [
    0,
    1,
    1,
    0
  ],
  "y_score": [
    0.1,
    0.4,
    0.8,
    0.35
  ]
}
Output
[
  [
    1,
    1,
    0.6666666666666666,
    0.5
  ],
  [
    0.5,
    1,
    1,
    1
  ],
  [
    0.8,
    0.4,
    0.35,
    0.1
  ]
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
precision-recall
threshold sweep
binary classification
metrics

Similar Questions

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