コード例 #1
0
 def __call__(self, premise, hypo):
     inp = T.concatenate([premise, hypo], axis=1)  # Which axis?
     return softmax(
         self.classify(
             self.activation(
                 self.L3(
                     self.activation(
                         self.L2(self.activation(self.L1(
                             self.Dropout(inp)))))))))
コード例 #2
0
ファイル: rte.py プロジェクト: gchrupala/reimaginet
 def __call__(self, premise, hypo):
     inp = T.concatenate([premise * hypo, abs(premise - hypo)], axis=1) # features
     return softmax(self.classify(self.Dropout(inp)))
コード例 #3
0
ファイル: rte.py プロジェクト: gchrupala/reimaginet
 def __call__(self, premise, hypo):
     inp = T.concatenate([premise, hypo], axis=1) # Which axis?
     return softmax(self.classify(
         self.activation(self.L3(
         self.activation(self.L2(
         self.activation(self.L1(self.Dropout(inp)))))))))
コード例 #4
0
 def __call__(self, premise, hypo):
     inp = T.concatenate(
         [premise * hypo, abs(premise - hypo)], axis=1)  # features
     return softmax(self.classify(self.Dropout(inp)))