def wrap(tree, i): t = SklTreeClassifier(tree) t.domain = self.domain t.supports_multiclass = self.supports_multiclass t.name = "{} - tree {}".format(self.name, i) t.original_domain = self.original_domain return t
def wrap(tree, i): t = SklTreeClassifier(tree) t.domain = self.domain t.supports_multiclass = self.supports_multiclass t.name = "{} - tree {}".format(self.name, i) t.original_domain = self.original_domain if hasattr(self, 'instances'): t.instances = self.instances return t