Previous question · 1469
Paid and Free Downloads
hardDatabase
Next question · 1471
Subdomain Visit Count
mediumData Structures
Random coding question

1470. Image classification inference

easy
GeneralGeneral
senior
Function contract
Inputs
logits
np.ndarray
class_names
list
Returns
value
tuple

Examples

Input
{
  "logits": [
    2,
    1,
    0.1
  ],
  "class_names": [
    "cat",
    "dog",
    "car"
  ]
}
Output
[
  "cat",
  0.6590011388859679,
  [
    0.6590011388859679,
    0.24243297070471392,
    0.09856589040931818
  ]
]

Constraints

Hint 1
Hint 2
Hint 3
Hint 4
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
softmax
numerical-stability
numpy
argmax

Similar Questions

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