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

NoSuchElementException during prediction with Random Forest Regressor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.5.2
    • None
    • ML
    • None

    Description

      I'm consistently getting "java.util.NoSuchElementException: key not found: 1.0" while trying to do a prediction on a trained model.
      I use ml package - Pipeline API. The model is successfully trained, I see some stats in the output: total, findSplitsBins, findBestSplits, chooseSplits. I can even serialize it into a file and use afterwards, but the prediction is broken somehow.

      Code, input data and stack trace attached.

      Attachments

        1. complete-stack-trace.log
          17 kB
          Eugene Morozov
        2. input.gz
          79 kB
          Eugene Morozov
        3. CodeThatGivesANoSuchElementException.java
          2 kB
          Eugene Morozov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jean Eugene Morozov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: