Changeset 8152:2ca24fe35adc in orange


Ignore:
Timestamp:
08/05/11 12:02:43 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
cfe047a6e7d9e6617026b2d246c6b115a8622c1a
Message:

Fixed preprocessor signal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Regression/OWEarth.py

    r8151 r8152  
    77 
    88from Orange.regression import earth 
    9 from Orange.preprocess import Preprocessor 
     9from orngWrap import PreprocessedLearner 
    1010  
    1111class OWEarth(OWWidget): 
    12     settingsList = [] 
     12    settingsList = ["degree", "terms", "penalty"] 
    1313     
    1414    def __init__(self, parent=None, signalManager=None, 
     
    1616        OWWidget.__init__(self, parent, signalManager, title, wantMainArea=False) 
    1717         
    18         self.inputs = [("Training data", Orange.data.Table, self.set_data), ("Preprocessor", Preprocessor, self.set_preprocessor)] 
     18        self.inputs = [("Training data", Orange.data.Table, self.set_data), ("Preprocessor", PreprocessedLearner, self.set_preprocessor)] 
    1919        self.outputs = [("Learner", earth.EarthLearner), ("Predictor", earth.EarthClassifier)] 
    2020         
    2121        self.name = "Earth Learner" 
    22         self.degree = 2 
     22        self.degree = 1 
    2323        self.terms = 21 
    2424        self.penalty = 2 
     25         
     26        self.loadSettings() 
    2527         
    2628        ##### 
     
    8890    w.show() 
    8991    app.exec_() 
     92    w.saveSettings() 
    9093             
    9194             
Note: See TracChangeset for help on using the changeset viewer.