Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
reportbug1 opened this issue Mar 31, 2015 · 2 comments

Comments

@reportbug1
Copy link

Use case: Linear regression

  • take a suitable dataset (more than 1 predictor variables, 1 response variable (to be predicted))
  • do a regression with only 1 predictor variable
  • do a regression with all the predicotor variables

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
Copy link
Contributor

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:

    1. Instantiating a Learner object with a set of parameters (resulting in the 'Learner' output)
    1. Applying the learner (from 1) on the input dataset (resulting in the 'Classifier/Predictor' output)

@reportbug1
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants