Spark ML - Feature Importance for Tree Models
ml_tree_feature_importance(sc, model)
sc
A spark_connection.
spark_connection
model
An ml_model encapsulating the output from a decision tree.
ml_model
A sorted data frame with feature labels and their relative importance.