Previous question · 729
Brand Share by Region
hardDatabase
Next question · 731
First And Second Job Switch
hardDatabase
Random coding question

730. Activation function tanh

easy
GeneralGeneral
senior
Function contract
Inputs
x
np.ndarray
Returns
value
np.ndarray

Examples

Input
{
  "x": [
    -1,
    0,
    1
  ]
}
Output
[
  -0.7615941559557649,
  0,
  0.7615941559557649
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
activation-function
numerical-stability
elementwise-computation
math-exp

Similar Questions

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