SparkR: spark.randomForest unseen label error

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

SparkR: spark.randomForest unseen label error

Janna Maas
This post has NOT been accepted by the mailing list yet.
Hi List,

i have trained a RandomForest model using spark.randomForest, but am running into the 'unseen label' error when trying to predict() on a test dataset. I am pretty sure this is related to the StringIndexer that is automatically applied to my String columns.
Is there a way to pass on setHandleInvalid = "skip" to spark.randomForest?