Comments (7)
Oh ... i just saw, I already posted this a month ago in issue #21
If we want to continue our project, we need a fix for this. As you can see - this happens with MANY (most?) models. Could we talk about this for 10 minutes in the next days? In the best case we can find a technical soluation, which Jakob could implement?
from mlrmbo.
Well, the calls you posted above are faulty. predict.type
is an argument of makeLearner
and not makeBaggingWrapper
. Moreover none of the learners you used in your example does support the prediction of standard error. The following runs fine:
library(mlrMBO)
par.set = makeParamSet(
makeNumericVectorParam("x", len = 5, lower = 0, upper = 1),
makeDiscreteParam("z", values = 1:10)
)
f = function(x) sum(x$x) + as.numeric(x$z)
learner = makeBaggingWrapper(makeLearner("regr.nnet"), 10L)
control = makeMBOControl( init.design.points = 20, iters = 10)
res = mbo(f, par.set, learner = learner, control = control)
from mlrmbo.
I haven't looked at this for months ... i don't know if I posted some crap or if mlr changed, whatever. Good, if it runs fine.
But after applying the bagging wrapper every learner should be able to predict the se?
That's the whole reason for us to use the bagging wrapper - to predict the se and not only the mean response. This should also work somehow ..? We want to use for example a bagged kknn for mbo.
from mlrmbo.
Ok, now I unterstand what you calls should look like. You have to set the predict.type
of the wrapped model to se
via the setPredictType
method. The following code makes what you want and runs without any problems now.
library(mlrMBO)
par.set = makeParamSet(
makeNumericVectorParam("x", len = 5, lower = 0, upper = 1),
makeDiscreteParam("z", values = 1:10)
)
f = function(x) sum(x$x) + as.numeric(x$z)
learner = makeBaggingWrapper(makeLearner("regr.nnet"), 10L)
learner = setPredictType(learner, "se")
control = makeMBOControl( init.design.points = 20, iters = 2)
res = mbo(f, par.set, learner = learner, control = control)
from mlrmbo.
Stupid me ... sometimes it's really helpfull to use code that actually works instead of just using code that looks like it could do what you want it to. Cool, I will have a look at some things today.
So we have 1 extra line code we always have to use here. Perhaps we could talk about how to save this 1 line, but on the other hand it's only 1 line.
from mlrmbo.
Stupid me ... sometimes it's really helpfull to use code that actually works instead of just using code
that looks like it could do what you want it to. Cool, I will have a look at some things today.
Shit happens 😄
I think we can close this, because we discuss this already in #21.
So we have 1 extra line code we always have to use here. Perhaps we could talk about how to save
this 1 line, but on the other hand it's only 1 line.
This should be made a mlr issue.
from mlrmbo.
-
predict.type is not an arg of bagging wrapper because I don't want to bloat the interface.
-
I don't have any unit tests that fail currently. I will use the BaggingWrapper now too in test_different learners and close this.
Post more in #21 or open more issues if you have more models that break.
from mlrmbo.
Related Issues (20)
- negative se values in opt.path might confuse users HOT 1
- invalid class “km” object: the number of experiments must be larger than the spatial dimension HOT 2
- invalid class “km” object: the number of experiments must be larger than the spatial dimension HOT 7
- pkgdown-site points to slack HOT 1
- human in the loop mbo fails if final.evals is != 0
- Undocumented ranges for settings
- Error in if (err < tol) break : missing value where TRUE/FALSE needed for 'classif.gausspr' HOT 6
- The 'configureMlr' can not work with the parallel computing HOT 4
- qLCB not implemented perfectly
- The solution to the died training-No return HOT 1
- Test failure on R-devel HOT 3
- MOIMBO with interleave.random.points causes error HOT 1
- Unable to install mlrMBO using install.packages dependencies=T. I am on IOS and using R v 1.4, someone else? HOT 4
- optimizing "multiple objective" functions with "constraints" HOT 3
- Error: unused arguments (forbidden = expression(x2 > x1)) HOT 1
- Final Answer from mlrMBO outside of the specified variable ranges (multi objective function) HOT 2
- Error: Error in as.data.frame.OptPathDF(opt.path, include.rest = FALSE) : No elements where selected (via 'dob' and 'eol')! HOT 8
- Error: Setting of final.method and final.evals for multi-objective optimization not supported at the moment.
- Possible lack of consistency in xgboost hyperparameters optimization?
- error with AEI again
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlrmbo.