Changeset 9959:c25f1f8bab96 in orange


Ignore:
Timestamp:
02/07/12 18:15:55 (2 years ago)
Author:
ales_erjavec
Branch:
default
rebase_source:
0045395dd2ecfd0167aee30d625ef493ec720068
Message:

Changed returnType -> return_type, weightId -> weight_id, UnivariateLogRegLearnercall now raises NotImplemented error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/classification/logreg.py

    r9936 r9959  
    188188        self.__dict__.update(kwds) 
    189189 
    190     def __call__(self, instance, resultType = Orange.classification.Classifier.GetValue): 
    191         # classification not implemented yet. For now its use is only to provide regression coefficients and its statistics 
    192         pass 
     190    def __call__(self, instance, result_type = Orange.classification.Classifier.GetValue): 
     191        # classification not implemented yet. For now its use is only to 
     192        # provide regression coefficients and its statistics 
     193        raise NotImplemented 
    193194     
    194195 
    195196class LogRegLearnerGetPriors(object): 
    196     def __new__(cls, instances=None, weightID=0, **argkw): 
     197    def __new__(cls, instances=None, weight_id=0, **argkw): 
    197198        self = object.__new__(cls) 
    198199        if instances: 
    199200            self.__init__(**argkw) 
    200             return self.__call__(instances, weightID) 
     201            return self.__call__(instances, weight_id) 
    201202        else: 
    202203            return self 
Note: See TracChangeset for help on using the changeset viewer.