Changeset 9:9679301ca484 in orange-reliability


Ignore:
Timestamp:
07/09/12 15:17:37 (22 months ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Add names to reliability estimation learners.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _reliability/__init__.py

    r8 r9  
    405405     
    406406    """ 
    407     def __init__(self, m=50): 
     407    def __init__(self, m=50, name="bv"): 
    408408        self.m = m 
     409        self.name = name 
    409410 
    410411    def __call__(self, instances, learner): 
     
    482483 
    483484    """ 
    484     def __init__(self, k=0, distance=hellinger_dist, distance_weighted=True): 
     485    def __init__(self, k=0, distance=hellinger_dist, distance_weighted=True, name="lcv"): 
    485486        self.k = k 
    486487        self.distance = distance 
    487488        self.distance_weighted = distance_weighted 
     489        self.name = name 
    488490 
    489491    def __call__(self, instances, learner): 
     
    575577     
    576578    """ 
    577     def __init__(self, k=5, distance=hellinger_dist): 
     579    def __init__(self, k=5, distance=hellinger_dist, name = "cnk"): 
    578580        self.k = k 
    579581        self.distance = distance 
     582        self.name = name 
    580583 
    581584    def __call__(self, instances, learner): 
     
    789792    instance being predicted. 
    790793    """ 
    791     def __init__(self, K=gauss_kernel, d_measure=Orange.distance.Euclidean()): 
     794    def __init__(self, K=gauss_kernel, d_measure=Orange.distance.Euclidean(), name="density"): 
    792795        self.K = K 
    793796        self.d_measure = d_measure 
     797        self.name = name 
    794798 
    795799    def __call__(self, instances): 
Note: See TracChangeset for help on using the changeset viewer.