Previous question · 720
Locate Johnson Doctors
easyDatabase
Next question · 722
Assign Cookies
easyAlgorithms
Random coding question

721. Non Max Suppression

medium
GeneralGeneral
staff
Function contract
Inputs
boxes
np.ndarray
scores
np.ndarray
iou_threshold
float
Returns
value
list

Examples

Input
{
  "boxes": [
    [
      0,
      0,
      2,
      2
    ],
    [
      0.5,
      0.5,
      2.5,
      2.5
    ],
    [
      3,
      3,
      5,
      5
    ],
    [
      0,
      0,
      1,
      1
    ]
  ],
  "scores": [
    0.95,
    0.9,
    0.7,
    0.6
  ],
  "iou_threshold": 0.3
}
Output
[
  0,
  2,
  3
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
staff
senior
entry
Tags
non-max-suppression
intersection-over-union
greedy-algorithm
numpy

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