

def expr(self, model, data, *args, **kwargs):
    '\n        The cost of reconstructing `data` using `model`.\n\n        Parameters\n        ----------\n        model : a GSN\n        data : a batch of inputs to reconstruct.\n        args : evidently ignored?\n        kwargs : optional keyword arguments\n            For use with third party TrainingAlgorithms or FixedVarDescr\n        '
    self.get_data_specs(model)[0].validate(data)
    X = data
    return self.cost(X, model.reconstruct(X))

dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/costs/autoencoder.py GSNFriendlyCost.expr/original