Exemplo n.º 1
0
 def apply(self, X):
     h, t=self.apply_lin(X);
     h=nnfuns.relu(h);
     t=nnfuns.relu(t);
     
     return h*t+X*(1-t);
Exemplo n.º 2
0
 def apply(self, X):
     return nnfuns.relu(self.apply_lin(X));
Exemplo n.º 3
0
    def apply(self, X):
        h, t = self.apply_lin(X)
        h = nnfuns.relu(h)
        t = nnfuns.relu(t)

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