Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dectree/dectree.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def progress(self, ndigits: int = 3):

return round(nll/self.number_leaves, ndigits)

def plot_data(self, valid_nodes: List[List[int]],
def _to_plot_data(self, valid_nodes: List[List[int]],
complete_graph_layout: bool = True):
"""
Draw decision tree.
Expand Down Expand Up @@ -312,9 +312,9 @@ def plot_data(self, valid_nodes: List[List[int]],

return tree_plot_data

def plot_tree_data(self, valid_nodes, limit=100):
def plot_tree_data(self, valid_nodes, limit=100, complete_graph_layout: bool = True):

datas = self._to_plot_data(valid_nodes)
datas = self._to_plot_data(valid_nodes=valid_nodes, complete_graph_layout=complete_graph_layout)
circle_data = [data for data in datas if data['type'] == 'circle']

if limit is not None and len(circle_data) > limit:
Expand Down