示例#1
0
 def get_methods(self, classifier_type=None):
     all_classifiers = ConfFactory.get_methods(self)
     if classifier_type is None:
         return all_classifiers
     else:
         return [c for c in all_classifiers if
                 get_classifier_type(self.get_class(c)) == classifier_type]
示例#2
0
 def get_methods(self, supervised=None):
     all_classifiers = ConfFactory.get_methods(self)
     if supervised is None:
         return all_classifiers
     elif supervised:
         return [
             c for c in all_classifiers
             if self.get_class(c).is_supervised()
         ]
     else:
         return [
             c for c in all_classifiers
             if not self.get_class(c).is_supervised()
         ]
示例#3
0
 def get_methods(self):
     algos = ConfFactory.get_methods(self)
     algos.remove('Clustering')
     return algos