Skip to content

Commit

Permalink
Update dfedForest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AiramL authored Jun 20, 2020
1 parent 1808dc3 commit 83cf258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dfedForest.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def loadForest(self):
self.forestList.append(loads(readFile.read()))

# Generate a new tree based on a dataset
def createTree(self):
self.newTree = tree.DecisionTreeRegressor()
def createTree(self,depth):
self.newTree = tree.DecisionTreeClassifier(max_depth=depth)
self.newTree = self.newTree.fit(self.data, self.label)

# Show all tree on the list
Expand Down

0 comments on commit 83cf258

Please sign in to comment.