'Returns the predicted class for the given Vector.'

def _search(self, node, vector):

    while True:
        x = (node.feature in vector)
        b = False
        for n in node.children:
            if (n.value == x):
                b = True
                break
        if (b is False):
            return node.type
        node = n
