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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • MLlib

    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

            Unassigned Unassigned
            dmarcous@gmail.com Daniel Marcous
            Votes:
            2 Vote for this issue
            Watchers:
            2 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