0

I want to load a trained and saved spark.mllib.tree.model.DecisionTreeModel, and I want to load it in Java. I cannot use spark.read().load(...) because I am asked not to create SparkSession, and I cannot usePMML because it does not support DecisionTree. Could anyone please tell me how to do that?

Thank you!

Yiming Sun
  • 81
  • 2
  • 3
  • Why can you not create a SparkSession? Not even a local one? I guess you can use regular java serialization, but that's really not ideal. – Joe K Jun 27 '18 at 00:06
  • PMML does support decision tree models. The model element is simply called `TreeModel` (not `DecisionTree`). – user1808924 Jun 27 '18 at 06:06

0 Answers0