We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
set.seed(3) N = 2000 d = transform(data.frame( x1 = rnorm(N), x2 = rnorm(N), x3 = rnorm(N)), y = 2*x2 + (abs(x3) < 1) + rnorm(N)) train = (1 : N) <= 1000 task = makeRegrTask(data = d, target = "y") lrn1 = makeLearner("regr.lm") lrn2 = cpoDropConstants() %>>% lrn1 benchmark(list(lrn1, lrn2), task)
In this case, it randomly drops up to 2 features, even though they are standard normal
*added seeding for reproducibility
The text was updated successfully, but these errors were encountered:
Found the bug here:
return(!(all(abs(col - cmean) < abs.tol) || all(abs(col - cmean) / cmean < rel.tol)))
should be
return(!(all(abs(col - cmean) < abs.tol) || all(abs((col - cmean) / cmean) < rel.tol)))
The first version will always drop features that have a negative mean
Sorry, something went wrong.
Thanks!
fix #59: don't drop cols w/ negative mean
e9a5cf4
No branches or pull requests
In this case, it randomly drops up to 2 features, even though they are standard normal
*added seeding for reproducibility
The text was updated successfully, but these errors were encountered: