Commits

Matija Polajnar committed decf804

Add names to remaining methods.

  • Participants
  • Parent commits f98f041

Comments (0)

Files changed (1)

File _reliability/__init__.py

         self.text_description = None
 
 class DescriptiveAnalysis:
-    def __init__(self, estimator, desc=["high", "medium", "low"], procentage=[0.00, 0.33, 0.66]):
+    def __init__(self, estimator, desc=["high", "medium", "low"], procentage=[0.00, 0.33, 0.66], name="da"):
         self.desc = desc
         self.procentage = procentage
         self.estimator = estimator
+        self.name = name
 
     def __call__(self, instances, weight=None, **kwds):
 
     
     
     """
-    def __init__(self, e=[0.01, 0.1, 0.5, 1.0, 2.0]):
+    def __init__(self, e=[0.01, 0.1, 0.5, 1.0, 2.0], name="sa"):
         self.e = e
+        self.name = name
 
     def __call__(self, instances, learner):
         min_value = max_value = instances[0].getclass().value
 
     
     """
-    def __init__(self, k=3):
+    def __init__(self, k=3, name="mahalanobis"):
         self.k = k
+        self.name = name
 
     def __call__(self, instances, *args):
         nnm = Orange.classification.knn.FindNearestConstructor()
 
     
     """
-    def __init__(self):
-        pass
+    def __init__(self, name="mahalanobis to center"):
+        self.name = name
 
     def __call__(self, instances, *args):
         dc = Orange.core.DomainContinuizer()
     prediction error.
     
     """
-    def __init__(self, bagv=BaggingVariance(), cnk=CNeighbours()):
+    def __init__(self, bagv=BaggingVariance(), cnk=CNeighbours(), name="bvck"):
         self.bagv = bagv
         self.cnk = cnk
+        self.name = "bvck"
 
     def __call__(self, instances, learner):
         bagv_classifier = self.bagv(instances, learner)
         return bvck_estimates
 
 class ErrorPredicting:
-    def __init__(self):
-        pass
+    def __init__(self, name = "ep"):
+        self.name = name
 
     def __call__(self, instances, learner):
         res = Orange.evaluation.testing.cross_validation([learner], instances)