[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-08-17 07:14:23 +00:00
parent ddb7d8fcf0
commit 384d65ea13

View File

@ -6,6 +6,7 @@ Output: The decision tree maps a real number input to a real number output.
import numpy as np import numpy as np
import doctest import doctest
class DecisionTree: class DecisionTree:
def __init__(self, depth=5, min_leaf_size=5): def __init__(self, depth=5, min_leaf_size=5):
self.depth = depth self.depth = depth
@ -151,6 +152,7 @@ class TestDecisionTree:
return float(squared_error_sum / labels.size) return float(squared_error_sum / labels.size)
def main(): def main():
""" """
In this demonstration first we are generating x which is a numpy array containing values starting In this demonstration first we are generating x which is a numpy array containing values starting