'Removes training data from memory, keeping only the IG tree,
reducing file size with Classifier.save().'

def finalize(self):

    if (self._root is None):
        self._train()
    self._vectors = []
