Changeset 10387:bc542f61da37 in orange


Ignore:
Timestamp:
02/27/12 22:18:10 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed StepWiseFSS base class (needs to be object, due to the new method).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/classification/logreg.py

    r10380 r10387  
    683683 
    684684 
    685 class StepWiseFSS: 
     685class StepWiseFSS(object): 
    686686  """ 
    687687  A learning algorithm for logistic regression that implements a 
     
    727727 
    728728  def __new__(cls, data=None, **argkw): 
    729       self = Orange.classification.Learner.__new__(cls, **argkw) 
    730       if data: 
     729      self = object.__new__(cls) 
     730      if data is not None: 
    731731          self.__init__(**argkw) 
    732732          return self.__call__(data) 
     
    736736  @deprecated_keywords({"addCrit": "add_crit", "deleteCrit": "delete_crit", 
    737737                        "numFeatures": "num_features"}) 
    738   def __init__(self, add_crit=0.2, delete_crit=0.3, num_features = -1, **kwds): 
     738  def __init__(self, add_crit=0.2, delete_crit=0.3, num_features=-1, **kwds): 
    739739    self.__dict__.update(kwds) 
    740740    self.add_crit = add_crit 
Note: See TracChangeset for help on using the changeset viewer.