spark-tree-plotting
spark-tree-plotting copied to clipboard
AttributeError: 'DecisionTreeModel' object has no attribute '_java_obj' for Spark 2.4.0
On trying to generate the json representation of a tree model by calling tree_json = generate_tree_json(model), the following error is thrown:
AttributeError: 'DecisionTreeModel' object has no attribute '_java_obj'