@wraps(Layer.cost, append=True)
    def cost(self, Y, Y_hat):

        batch_axis = self.output_space.get_batch_axis()
        return self.nonlin.cost(Y=Y, Y_hat=Y_hat, batch_axis=batch_axis)
Convert Galois field elements from power form to tuple form representation.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/mlp.py/ConvElemwise.cost--crossover with--dataset/ETHPy150Open veeresht/CommPy/commpy/channelcoding/gfields.py/GF.power_to_tuple