(node_pos, sample, trees: List[HeteroFastDecisionTreeHost])
return node_pos
in mix mode, a sample can reach leaf directly
in mix mode, a sample can reach leaf directly
in mix mode a sample can reach leaf directly
def traverse_host_local_trees(node_pos, sample, trees: List[HeteroFastDecisionTreeHost]):

        """
        in mix mode, a sample can reach leaf directly
        """

        for i in range(len(trees)):

            tree = trees[i]
            if len(tree.tree_node) == 0:  # this tree belongs to other party because it has no tree node
                continue
            leaf_id = tree.host_local_traverse_tree(sample, tree.tree_node, use_missing=tree.use_missing,
                                                    zero_as_missing=tree.zero_as_missing)
            node_pos[i] = leaf_id

        return node_pos
def traverse_host_local_trees ( node_pos , sample , trees : List [ HeteroFastDecisionTreeHost ] ) : for i in range ( len ( trees ) ) : tree = trees [ i ] if len ( tree . tree_node ) == 0 : # this tree belongs to other party because it has no tree node continue leaf_id = tree . host_local_traverse_tree ( sample , tree . tree_node , use_missing = tree . use_missing , zero_as_missing = tree . zero_as_missing ) node_pos [ i ] = leaf_id return node_pos