This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import numpy as np | |
from sklearn.linear_model import Ridge | |
class LinearModelTree: | |
def __init__(self, min_node_size, node_model_fit_func, min_split_improvement=0): | |
self.min_node_size = min_node_size | |
self.node_model_fit_func = node_model_fit_func | |
self.min_split_improvement = min_split_improvement |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.