spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph K. Bradley (JIRA)" <>
Subject [jira] [Commented] (SPARK-12367) NoSuchElementException during prediction with Random Forest Regressor
Date Wed, 16 Dec 2015 20:01:46 GMT


Joseph K. Bradley commented on SPARK-12367:

This is likely caused by a feature value 1.0 which did not appear in the training data.  That
prevents VectorIndexer from knowing about that value, so it does not have a corresponding
index when trying to transform the test data.  It will be handled by [SPARK-12375].

> NoSuchElementException during prediction with Random Forest Regressor
> ---------------------------------------------------------------------
>                 Key: SPARK-12367
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: ML
>    Affects Versions: 1.5.2
>            Reporter: Eugene Morozov
>         Attachments:, complete-stack-trace.log,
> 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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message