Maxout ====== .. automodule:: activations_plus.Maxout :members: forward, __init__ **Reference Paper**: `Maxout Activation Function `_ **Mathematical Explanation**: The Maxout activation function is defined as: .. math:: f(x) = \max_{i \in [1, k]} (x \cdot W_i + b_i) where :math:`W_i` and :math:`b_i` are learnable parameters, and :math:`k` is the number of linear pieces. **Example Usage**: .. code-block:: python import torch from activations_plus.maxout import Maxout activation = Maxout(num_pieces=2) x = torch.tensor([[1.0, 2.0], [3.0, 4.0]]) y = activation(x) print("Maxout Output:", y)