Previous question · 942
Wine Price Stats by Country
mediumDatabase
Next question · 944
Count Employees With Bonuses
mediumDatabase

943. Gradient checking

medium
GeneralGeneral
staff
Function contract
Inputs
W
np.ndarray
X
np.ndarray
b
np.ndarray
y
np.ndarray
eps
float
Returns
value
np.ndarray

Examples

Input
{
  "W": [
    [
      0.05
    ],
    [
      -0.02
    ]
  ],
  "X": [
    [
      0.2,
      -0.1
    ],
    [
      1,
      0.3
    ]
  ],
  "b": [
    0.01
  ],
  "y": [
    1,
    0
  ],
  "eps": 0.00001
}
Output
[
  [
    1.500700975752376e-11
  ],
  [
    3.0337533077315667e-11
  ]
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
staff
senior
entry
Tags
gradient-checking
finite-differences
backpropagation
binary-cross-entropy

Similar Questions

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