示例#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
示例#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
示例#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
示例#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