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

Generic test for ProbabilisticClassifier to ensure consistent output columns

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • ML
    • None

    Description

      One challenge with the ProbabilisticClassifier abstraction is that it introduces different code paths for predictions depending on which output columns are turned on or off: probability, rawPrediction, prediction. We ran into a bug in MLOR with this.

      This task is for adding a generic test usable in all test suites for ProbabilisticClassifier types which does the following:

      • Take a dataset + Estimator
      • Fit the Estimator
      • Test prediction using the model with all combinations of output columns turned on/off.
      • Make sure the output column values match, presumably by comparing vs. the case with all 3 output columns turned on

      CC WeichenXu123 since this came up in https://github.com/apache/spark/pull/17373

      Attachments

        Issue Links

          Activity

            People

              weichenxu123 Weichen Xu
              josephkb Joseph K. Bradley
              Joseph K. Bradley Joseph K. Bradley
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: