Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-13042

Adding Specificity metric (= true negative rate) to MulticlassMetrics.scala

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MLlib
    • Labels:

      Description

      Adding Specificity metric (= true negative rate) to MulticlassMetrics.scala

      1. Add specificity calculations:

      pecificity (SPC) or true negative rate
      SPC = TN / N = TN / (TN+FP)
      False Positive Rate (FPR)
      FPR = FP / N = FP / (FP + TN) = 1-SPC

      SPC = 1 - FPR

      2. Add specificity tests to :
      mllib/src/test/scala/org/apache/spark/mllib/evaluation/MulticlassMetricsSuite.scala

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dmarcous@gmail.com Daniel Marcous
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 12h
                12h
                Remaining:
                Remaining Estimate - 12h
                12h
                Logged:
                Time Spent - Not Specified
                Not Specified