MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / get_labels

Function get_labels

nlp_class2/recursive_tensorflow.py:24–29  ·  view source on GitHub ↗
(tree)

Source from the content-addressed store, hash-verified

22
23
24def get_labels(tree):
25 # must be returned in the same order as tree logits are returned
26 # post-order traversal
27 if tree is None:
28 return []
29 return get_labels(tree.left) + get_labels(tree.right) + [tree.label]
30
31
32class TNN:

Callers 2

fitMethod · 0.70
scoreMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected