Changeset 8154:854228f83fea in orange


Ignore:
Timestamp:
08/05/11 13:41:26 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
8efb6c529757347fdbcab9e87603cd09034fb004
Message:

Fixed preprocessor signal.

File:
1 edited

Legend:

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

    r8151 r8154  
    77import Orange 
    88from Orange.regression import linear 
    9 from Orange.preprocess import Preprocessor 
     9from orngWrap import PreprocessedLearner 
    1010 
    1111class OWLinearRegression(OWWidget): 
     
    1515        OWWidget.__init__(self, parent, signalManager, title, wantMainArea=False) 
    1616         
    17         self.inputs = [("Training data", Orange.data.Table, self.set_data), ("Preprocessor", Preprocessor, self.set_preprocessor)] 
     17        self.inputs = [("Training data", Orange.data.Table, self.set_data), ("Preprocessor", PreprocessedLearner, self.set_preprocessor)] 
    1818        self.outputs = [("Learner", Orange.core.Learner), ("Predictor", Orange.core.Classifier)] 
    1919         
     
    2323          
    2424        self.name = "Linear Regression" 
     25#        self.beta0 = True 
    2526         
    2627         
     
    3132        OWGUI.lineEdit(self.controlArea, self, "name", box="Learner/predictor name",  
    3233                       tooltip="Name of the learner/predictor") 
     34         
     35#        OWGUI.checkBox(self.controlArea, self, "beta0", "Include intercept.", 
     36#                       box="Settings", 
     37#                       tooltip="Add an intercept to the linear model") 
    3338         
    3439        OWGUI.button(self.controlArea, self, "&Apply", 
Note: See TracChangeset for help on using the changeset viewer.