Previous question · 871
K Nearest Neighbors Classifier
mediumML Coding
Next question · 873
London Olympic Swimmers List
easyDatabase
Random coding question

872. Backpropagation through activation

easy
GeneralGeneral
senior
Function contract
Inputs
Z
np.ndarray
dA
np.ndarray
activation
str
Returns
value
np.ndarray

Examples

Input
{
  "Z": [
    [
      2,
      -1,
      0
    ],
    [
      -3,
      4,
      1
    ]
  ],
  "dA": [
    [
      1,
      -2,
      3
    ],
    [
      0.5,
      1,
      -1.5
    ]
  ],
  "activation": "relu"
}
Output
[
  [
    1,
    0,
    0
  ],
  [
    0,
    1,
    -1.5
  ]
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
backpropagation
ReLU
sigmoid
numpy

Similar Questions

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