Github user yanboliang commented on the issue: https://github.com/apache/spark/pull/13353 @jkbradley I found the main problem is that the ```uid``` defined in Java class will be initialized after Scala traits such as ```HasFeaturesCol```. So when ```HasFeaturesCol``` being constructed, they get ```uid``` with null, which will cause ```Param.shouldOwn``` check fail. I think moving the ```uid``` as constructor argument of ```Classifier``` will solve this problem. But it involves public API changes such as ```Classifier```, ```Regressor```, ```ProbabilisticClassifier```, etc and should be further defined, I agree to remove this for now. I will track this issue and send my proposal of fix to JIRA for discussion. I think we can find an appropriate fix it at 2.1 and adding this example back.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org