Skip to content

Commit

Permalink
Remove tree_index from spark shadow tree initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
tlapusan committed Feb 7, 2021
1 parent c20c257 commit 78d89d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtreeviz/models/shadow_decision_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def get_shadow_tree(tree_model, x_data, y_data, feature_names, target_name, clas
elif (str(type(tree_model)).endswith("pyspark.ml.classification.DecisionTreeClassificationModel'>") or
str(type(tree_model)).endswith("pyspark.ml.classification.DecisionTreeClassificationModel'>")):
from dtreeviz.models import spark_decision_tree
return spark_decision_tree.ShadowSparkTree(tree_model, tree_index, x_data, y_data,
return spark_decision_tree.ShadowSparkTree(tree_model, x_data, y_data,
feature_names, target_name, class_names)
elif "lightgbm.basic.Booster" in str(type(tree_model)):
from dtreeviz.models import lightgbm_decision_tree
Expand Down

0 comments on commit 78d89d9

Please sign in to comment.