MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / get_output

Method get_output

nlp_class2/rntn_tensorflow.py:186–193  ·  view source on GitHub ↗
(self, tree)

Source from the content-addressed store, hash-verified

184 return x
185
186 def get_output(self, tree):
187 logits = []
188 try:
189 self.get_output_recursive(tree, logits)
190 except Exception as e:
191 display_tree(tree)
192 raise e
193 return tf.concat(0, logits)
194
195 def score(self, trees):
196 if trees is None:

Callers 2

fitMethod · 0.95
scoreMethod · 0.95

Calls 2

get_output_recursiveMethod · 0.95
display_treeFunction · 0.90

Tested by

no test coverage detected