(self, depth=5, min_leaf_size=5)
| 9 | |
| 10 | class DecisionTree: |
| 11 | def __init__(self, depth=5, min_leaf_size=5): |
| 12 | self.depth = depth |
| 13 | self.decision_boundary = 0 |
| 14 | self.left = None |
| 15 | self.right = None |
| 16 | self.min_leaf_size = min_leaf_size |
| 17 | self.prediction = None |
| 18 | |
| 19 | def mean_squared_error(self, labels, prediction): |
| 20 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected