Last active
September 25, 2018 20:30
-
-
Save benoitdescamps/6a96784c893546b3c4230f5dcc09eec8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class TreeProperties(object): | |
''' | |
:param max_leafs: maximum number of leafs | |
:param n_features: maximum number of feature available within the data | |
:param n_classes: number of classes | |
''' | |
def __init__(self,max_depth,max_leafs,n_features,n_classes,regularisation_penality=10.,decay_penality=0.9): | |
self.max_depth = max_depth | |
self.max_leafs = max_leafs | |
self.n_features = n_features | |
self.n_classes = n_classes | |
self.epsilon = 1e-8 | |
self.decay_penality = decay_penality | |
self.regularisation_penality = regularisation_penality |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment