public getMetricValues()

in packages/dispatcher/src/mathematics/confusion_matrix/BinaryConfusionMatrix.ts [1475:1674]


    public getMetricValues(
        explicitTotal: number = -1,
        explicitTotalPositives: number = -1,
        explicitTotalNegatives: number = -1,
        fMeasureBeta: number = 1,
        effectivenessMeasureAlpha: number = 0.5,
        rejectRate: number = -1,
        alpha: number = 1,
        beta: number = 1,
        A: number = 1,
        B: number = 1,
        explicitMaxPositives: number = -1): number[] {
        const metricValues: number[] = [
            this.getTotal(),
            this.getCell11(),
            this.getRow1(),
            this.getColumn1(),
            this.getPotentialRow1(),
            this.getPotentialRow2(),
            this.getRow2(),
            this.getColumn2(),
            this.getCell12(),
            this.getCell21(),
            this.getCell22(),
            this.getExpectedCell11(),
            this.getExpectedCell12(),
            this.getExpectedCell21(),
            this.getExpectedCell22(),
            this.getRatioCell11(),
            this.getRatioRow1(),
            this.getRatioColumn1(),
            this.getRatioRow2(),
            this.getRatioColumn2(),
            this.getRatioCell12(),
            this.getRatioCell21(),
            this.getRatioCell22(),
            this.getPositives(),
            this.getNegatives(),
            this.getPositiveRatio(),
            this.getNegativeRatio(),
            this.getPredictedPositives(),
            this.getPredictedNegatives(),
            this.getPredictedPositiveRatio(),
            this.getPredictedNegativeRatio(),
            this.getTruePositives(),
            this.getTruePositiveRatio(),
            this.getTrueNegatives(),
            this.getTrueNegativeRatio(),
            this.getFalsePositives(),
            this.getFalsePositiveRatio(),
            this.getFalseNegatives(),
            this.getFalseNegativeRatio(),
            this.getPositiveNegativeRatio(),
            this.getNegativePositiveRatio(),
            this.getPotentialPositives(),
            this.getPotentialNegatives(),
            this.getPrecision(),
            this.getRecall(),
            this.getF1Score(),
            this.getSupport(),
            this.getHits(),
            this.getCorrectRejections(),
            this.getFalseAlarms(),
            this.getMisses(),
            this.getTypeOneErrors(),
            this.getTypeTwoErrors(),
            this.getTruePositiveRate(),
            this.getTrueNegativeRate(),
            this.getPositivePredictiveValue(),
            this.getNegativePredictiveValue(),
            this.getFalsePositiveRate(),
            this.getFalseDiscoveryRate(),
            this.getFalseNegativeRate(),
            this.getTruePositiveOverTotalRate(),
            this.getTrueNegativeOverTotalRate(),
            this.getFalsePositiveOverTotalRate(),
            this.getFalseNegativeOverTotalRate(),
            this.getTruePositiveOverExplicitTotalRate(explicitTotal),
            this.getTrueNegativeOverExplicitTotalRate(explicitTotal),
            this.getFalsePositiveOverExplicitTotalRate(explicitTotal),
            this.getFalseNegativeOverExplicitTotalRate(explicitTotal),
            this.getConditionPositiveRate(),
            this.getConditionNegativeRate(),
            this.getPredictedPositiveRate(),
            this.getPredictedNegativeRate(),
            this.getConditionPositiveCaughtRate(explicitTotalPositives),
            this.getConditionPositiveMissedRate(explicitTotalPositives),
            this.getConditionNegativeCaughtRate(explicitTotalNegatives),
            this.getConditionNegativeMissedRate(explicitTotalNegatives),
            this.getConditionPositiveDecidedRate(explicitTotalPositives),
            this.getConditionNegativeDecidedRate(explicitTotalNegatives),
            this.getConditionPositiveUndecidedRate(explicitTotalPositives),
            this.getConditionNegativeUndecidedRate(explicitTotalNegatives),
            this.getPredictedPositiveDecidedRate(explicitTotal),
            this.getPredictedNegativeDecidedRate(explicitTotal),
            this.getTotalDecidedRate(explicitTotal),
            this.getTotalUnDecidedRate(explicitTotal),
            this.getConditionPositivesUndecided(explicitTotalPositives),
            this.getConditionNegativesUndecided(explicitTotalNegatives),
            this.getTotalUnDecided(explicitTotal),
            this.getHitRate(),
            // ---- NOTE-BASIC-METRIC-DEFINED-ALREADY-FOR-COMPLETENESS ---- this.getRecall(),
            this.getProbabilityOfDetection(),
            this.getSensitivity(),
            this.getSpecificity(),
            // ---- NOTE-BASIC-METRIC-DEFINED-ALREADY-FOR-COMPLETENESS ---- this.getPrecision(),
            this.getFallOut(),
            this.getProbabilityOfFalseAlarm(),
            this.getMissRate(),
            this.getAccuracy(),
            // ---- NOTE-BASIC-METRIC-DEFINED-ALREADY-FOR-COMPLETENESS ---- this.getF1Score(),
            this.getGMeasure(),
            this.getMatthewsCorrelationCoefficient(),
            this.getInformedness(),
            this.getBookmakerInformedness(),
            this.getMarkedness(),
            this.getFalseOmissionRate(),
            this.getPrevalence(),
            this.getTruePositiveRateOverFalsePositiveRate(),
            this.getPositiveLikelihoodRatio(),
            this.getFalseNegativeRateOverTrueNegativeRate(),
            this.getNegativeLikelihoodRatio(),
            this.getDiagnosticOddsRatio(),
            this.getFMeasure(fMeasureBeta),
            this.getF1Measure(),
            this.getF2Measure(),
            this.getF05Measure(),
            this.getEffectivenessMeasure(effectivenessMeasureAlpha),
            this.getEffectivenessMeasure05(),
            this.getEffectivenessMeasure02(),
            this.getEffectivenessMeasure08(),
            this.getRisk(),
            this.getRiskPredictedNegative(),
            this.getOdds(),
            this.getOddsRatio(),
            this.getRelativeRisk(),
            this.getWeightOfEvidence(),
            this.getPositiveNegativePotentialRatio(),
            this.getChargeBackRate(),
            this.getFraudRate(),
            this.getRejectRate(),
            this.getPE(),
            this.getPETruePositiveExtreme(),
            this.getPEFalsePositiveExtreme(),
            this.getPEFalseNegativeExtreme(),
            this.getPETrueNegativeExtreme(),
            this.getPEPerfect(),
            this.getPEWorst(),
            this.getPEAlwaysReject(),
            this.getPEAlwaysApprove(),
            this.getPERandomBaseline(),
            this.getPEGenericRandomBaseline(rejectRate),
            this.getOPE(),
            this.getOPETruePositiveExtreme(),
            this.getOPEFalsePositiveExtreme(),
            this.getOPEFalseNegativeExtreme(),
            this.getOPETrueNegativeExtreme(),
            this.getOPEPerfect(),
            this.getOPEWorst(),
            this.getOPEAlwaysReject(),
            this.getOPEAlwaysApprove(),
            this.getOPERandomBaseline(),
            this.getOPEGenericRandomBaseline(rejectRate),
            this.getOPEsharp(alpha, beta, A, B),
            this.getOPEsharpRandomBaseline(alpha, beta, A, B),
            this.getOPEsharpGenericRandomBaseline(rejectRate, alpha, beta, A, B),
            this.getNetPE(),
            this.getNetOPE(),
            this.getNetOPEsharp(alpha, beta, A, B),
            this.getGenericNetPE(rejectRate),
            this.getGenericNetOPE(rejectRate),
            this.getGenericNetOPEsharp(rejectRate, alpha, beta, A, B),
            this.getdOPE(),
            this.getOPEPrime(),
            this.getOLR(),
            this.getOGR(),
            this.getInverseDocumentFrequencyRaw(),
            this.getInverseDocumentFrequency(),
            this.getInverseDocumentFrequencyUnary(),
            this.getInverseDocumentFrequencySmooth(),
            this.getInverseDocumentFrequencyMax(explicitMaxPositives),
            this.getInverseDocumentFrequencyProbabilistic(),
            this.getJaccardCoefficient(),
            this.getSimpleMatchingCoefficient(),
            this.getJaccardDenominatorMinCoefficient(),
            this.getJaccardDenominatorMaxCoefficient(),
            explicitTotal,
            explicitTotalPositives,
            explicitTotalNegatives,
            fMeasureBeta,
            effectivenessMeasureAlpha,
            rejectRate,
            alpha,
            beta,
            A,
            B,
            explicitMaxPositives,
        ];
        return metricValues;
    }