def classify(self, document, discrete=True):
        if self._root is None:
            self._train()
        return self._search(self._root, self._vector(document)[1])
Returns the type with the highest probability for the given document.
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/IGTree.classify