def apply(self, X): h, t=self.apply_lin(X); h=nnfuns.tanh(h); t=nnfuns.tanh(t); return h*t+X*(1-t);
def apply(self, X): return nnfuns.tanh(self.apply_lin(X));
def apply(self, X): h, t = self.apply_lin(X) h = nnfuns.tanh(h) t = nnfuns.tanh(t) return h * t + X * (1 - t)