예제 #1
0
 def apply(self, X):
     h, t=self.apply_lin(X);
     h=nnfuns.tanh(h);
     t=nnfuns.tanh(t);
 
     return h*t+X*(1-t);
예제 #2
0
 def apply(self, X):
     return nnfuns.tanh(self.apply_lin(X));
예제 #3
0
    def apply(self, X):
        h, t = self.apply_lin(X)
        h = nnfuns.tanh(h)
        t = nnfuns.tanh(t)

        return h * t + X * (1 - t)