Skip to content
Merged
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
2 changes: 1 addition & 1 deletion machine_learning/decision_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def train(self, x, y):
return

best_split = 0
min_error = self.mean_squared_error(x, np.mean(y)) * 2
min_error = self.mean_squared_error(y, np.mean(y)) * 2

"""
loop over all possible splits for the decision tree. find the best split.
Expand Down
Loading