
Create a DecisionTreeRegressor class in the file tree.py andmust code the functions above. You may add additional necessaryfunctions if needed. You can use any dataset to test the class.
class DecisionTreeRegressor: def init_(self, max_depth): pass def fit (self, x: pd.DataFrame, y: np.array): pass def predict (self, X): pass def score (self): pass Show transcribed image text
Expert Answer
An answer will be send to you shortly. . . . .