Changeset 14:decf8040fc45 in orange-reliability for _reliability/__init__.py


Ignore:
Timestamp:
07/11/12 21:01:47 (22 months ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Add names to remaining methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _reliability/__init__.py

    r13 r14  
    253253 
    254254class DescriptiveAnalysis: 
    255     def __init__(self, estimator, desc=["high", "medium", "low"], procentage=[0.00, 0.33, 0.66]): 
     255    def __init__(self, estimator, desc=["high", "medium", "low"], procentage=[0.00, 0.33, 0.66], name="da"): 
    256256        self.desc = desc 
    257257        self.procentage = procentage 
    258258        self.estimator = estimator 
     259        self.name = name 
    259260 
    260261    def __call__(self, instances, weight=None, **kwds): 
     
    322323     
    323324    """ 
    324     def __init__(self, e=[0.01, 0.1, 0.5, 1.0, 2.0]): 
     325    def __init__(self, e=[0.01, 0.1, 0.5, 1.0, 2.0], name="sa"): 
    325326        self.e = e 
     327        self.name = name 
    326328 
    327329    def __call__(self, instances, learner): 
     
    674676     
    675677    """ 
    676     def __init__(self, k=3): 
     678    def __init__(self, k=3, name="mahalanobis"): 
    677679        self.k = k 
     680        self.name = name 
    678681 
    679682    def __call__(self, instances, *args): 
     
    708711     
    709712    """ 
    710     def __init__(self): 
    711         pass 
     713    def __init__(self, name="mahalanobis to center"): 
     714        self.name = name 
    712715 
    713716    def __call__(self, instances, *args): 
     
    760763     
    761764    """ 
    762     def __init__(self, bagv=BaggingVariance(), cnk=CNeighbours()): 
     765    def __init__(self, bagv=BaggingVariance(), cnk=CNeighbours(), name="bvck"): 
    763766        self.bagv = bagv 
    764767        self.cnk = cnk 
     768        self.name = "bvck" 
    765769 
    766770    def __call__(self, instances, learner): 
     
    785789 
    786790class ErrorPredicting: 
    787     def __init__(self): 
    788         pass 
     791    def __init__(self, name = "ep"): 
     792        self.name = name 
    789793 
    790794    def __call__(self, instances, learner): 
Note: See TracChangeset for help on using the changeset viewer.