Implement the dropout forward pass in training mode.
Signature: def dropout_forward(x: np.ndarray, p: float, seed: int = 0) -> np.ndarray
p1/(1-p) (inverted dropout)np.random.default_rng(seed) for reproducibilityMath
Related problems
Asked at
Output
Anything you print() in your code will show up here after you click Run.
Test Results