def __call__(self, target):
        TP = 0 # True positives.
        TN = 0 # True negatives.
        FP = 0 # False positives (type I error).
        FN = 0 # False negatives (type II error).
        for t1 in self:
            for t2, n in self[t1].items():
                if target == t1 == t2: 
                    TP += n
                if target != t1 == t2: 
                    TN += n
                if target == t1 != t2: 
                    FN += n
                if target == t2 != t1: 
                    FP += n
        return (TP, TN, FP, FN)
Override find_errors, parsing output json into json_object.
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/ConfusionMatrix.__call__--crossover with--dataset/ETHPy150Open mmaday/SublimeLinter-contrib-htmlhint/linter.py/Htmlhint.find_errors