Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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