Last active
August 8, 2018 07:49
-
-
Save lethalbrains/18cf41fe9b2cce4f1390fdca7255ac35 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def __create_branches(self): | |
self.left = DecisionTree() | |
self.right = DecisionTree() | |
left_rows = self.data[self.data[self.split_feature] <= self.criteria] | |
right_rows = self.data[self.data[self.split_feature] > self.criteria] | |
self.left.fit(data = left_rows, target = self.target) | |
self.right.fit(data = right_rows, target = self.target) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment