Maxout generalizes ReLU: a maxout unit with two pieces, one fixed at zero and one free, reproduces ReLU exactly. The paper uses this to show maxout is at least as expressive as the standard activation.
Implement relu_via_maxout(x), which returns max(x, 0) by taking the maximum of the two pieces x and 0.
np.maximum(x, 0).Stack x and an all-zero array along a new last axis, then take the max over that axis.
No results yet
Run your code to check it against the examples, or submit to run every test.