Previous question · 1342
Count multilingual users
mediumDatabase
Next question · 1344
Ordinal encoding
easyML Coding
Random coding question

1343. Batch normalization forward pass

medium
GeneralGeneral
senior
Function contract
Inputs
X
np.ndarray
eps
float
beta
np.ndarray
gamma
np.ndarray
Returns
value
np.ndarray

Examples

Input
{
  "X": [
    [
      1,
      2
    ],
    [
      3,
      4
    ],
    [
      5,
      6
    ]
  ],
  "eps": 0.00001,
  "beta": [
    0,
    0.5
  ],
  "gamma": [
    1,
    1.5
  ]
}
Output
[
  [
    -1.2247425750014138,
    -1.3371138625021208
  ],
  [
    0,
    0.5
  ],
  [
    1.2247425750014138,
    2.337113862502121
  ]
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
batch-normalization
numpy-broadcasting
vectorization
numerical-stability

Similar Questions

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