Problems
Previous question · 948
Top #1 Songs Since 2005
easy
Database
Next question · 950
Combination Sum III
medium
Algorithms
Random coding question
NumPy
Language
NumPy
Practice
Interview
AI Tutor
Description
Solution
Discussion
949. Softmax
easy
General
senior
Function contract
Inputs
logits
np.ndarray
Returns
value
np.ndarray
Examples
Example 1
Input
{
"logits"
:
[
2
,
1
,
0.1
]
}
Output
[
0.6590011388859679
,
0.24243297070471392
,
0.09856589040931818
]
Example 2
Input Signature
Argument
Type
logits
np.ndarray
Output Signature
Return Name
Type
value
np.ndarray
Constraints
Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
General
Levels
senior
entry
Tags
softmax
numerical-stability
numpy
probability-normalization
Similar Questions
Linear Regression
medium
ML Coding
Activation function relu
easy
ML Coding
Text normalization
medium
ML Coding
10 people
are solving this problem
Run
Submit
00:00
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATA
INTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run script
Execute the current editor contents
submit
Grade the current editor contents against all solution test cases
python ("print hello world")
Run an isolated Python command
help
Show all available commands
>>>