mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-26 02:48:40 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
ddb7d8fcf0
commit
384d65ea13
@ -6,6 +6,7 @@ Output: The decision tree maps a real number input to a real number output.
|
||||
import numpy as np
|
||||
import doctest
|
||||
|
||||
|
||||
class DecisionTree:
|
||||
def __init__(self, depth=5, min_leaf_size=5):
|
||||
self.depth = depth
|
||||
@ -151,6 +152,7 @@ class TestDecisionTree:
|
||||
|
||||
return float(squared_error_sum / labels.size)
|
||||
|
||||
|
||||
def main():
|
||||
"""
|
||||
In this demonstration first we are generating x which is a numpy array containing values starting
|
||||
|
Loading…
x
Reference in New Issue
Block a user