def confusion_matrix(self, documents=[]):
        documents = [isinstance(d, Document) and (d, d.type) or d for d in documents]
        return ConfusionMatrix(self.classify, documents)
Returns the confusion matrix for the given test data,
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/Classifier.confusion_matrix