Skip to content

Instantly share code, notes, and snippets.

@benoitdescamps
Last active September 25, 2018 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benoitdescamps/6a96784c893546b3c4230f5dcc09eec8 to your computer and use it in GitHub Desktop.
Save benoitdescamps/6a96784c893546b3c4230f5dcc09eec8 to your computer and use it in GitHub Desktop.
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