Open tlapusan opened 1 year ago
ex:
def get_node_nsamples_by_class(self, id): all_nodes = self.internal + self.leaves if self.is_classifier(): node_value = [node.n_sample_classes() for node in all_nodes if node.id == id] return node_value[0]
ex: