def fprop(self, X): cost = NllBin(X[0], X[1]) if self.use_sum: return cost.sum() else: return cost.mean()