def apply(self, incoming):
        """
        Store the incoming activation, apply the activation function and store
        the result as outgoing activation.
        """
        assert len(incoming) == self.size
        self.incoming = incoming
        outgoing = self.activation(self.incoming)
        assert len(outgoing) == self.size
        self.outgoing = outgoing
def apply ( self , incoming ) : assert len ( incoming ) == self . size self . incoming = incoming outgoing = self . activation ( self . incoming ) assert len ( outgoing ) == self . size self . outgoing = outgoing
Store the incoming activation, apply the activation function and store
        the result as outgoing activation.