Created
August 8, 2018 09:21
-
-
Save lethalbrains/e6053aa75da9385b35ed416b3b6ea5a9 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
@property | |
def is_leaf_node(self): return self.left is None | |
@property | |
def probability(self): | |
return self.data[self.target].value_counts().apply(lambda x: x/len(self.data)).tolist() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment