biolab / orange2

DEPRECATED: Orange 2 (Python 2) data mining suite. NEW: https://github.com/biolab/orange3
GNU General Public License v3.0
307 stars 142 forks source link

Linear Regression Widget (or more likely test learner widget) does not follow filtered attributes #18

Open reportbug1 opened 9 years ago

reportbug1 commented 9 years ago

Use case: Linear regression

in test learners they will show the same performance scores results (ie the results of the full regression, i suspect because of the data feed for test learners), so the performance scores of the regression with 1 only variable are false

as a check showing the regression statistics for each regression method does show the correct data

version 2.7.8

ales-erjavec commented 9 years ago

I suspect you are not using the widgets correctly (can you provide more details).

Providing input to a Learner widget (Linear Regression, Naive bayes, ...) only effects the Classifier/Predictor output not the Learner output. So if you are using Select Attributes -> Linear Regression -> Test Learners you should not expect that the selection in Select Attributes has any effect on the application of the learner in Test Learner widget. This might be confusing for the uninitiated, but this is by design. That is because the Learner widgets serve a double purpose:

reportbug1 commented 9 years ago

but the learner object for regression also output the model so this model is ignored by "test learners"?

setup (works): data - XY data - lin regre - test learner (+ xy data as feed for test learner)

what does not (wrong output for the simple XY model): data ---------- lin regre - test learner -xy data-lin regre- (data as feed for test learner)