Code Monkey home page Code Monkey logo

Comments (9)

berndbischl avatar berndbischl commented on July 30, 2024

It works with any regr. model that is able to provide predict.type="se". If the model does not, you still have the option to use makeBaggingWrapper to bootstrap the se estimator. Should be mentioned in tutorial, help text and maybe error message.

from mlrmbo.

berndbischl avatar berndbischl commented on July 30, 2024

Jakob, please for now check (in code) that the model can predict "se" for the infill crits that need "se".
Otherwise produce a helpful error message. Maybe mention the BaggingWrapper BRIEFLY as a solution, too.

Then close this

from mlrmbo.

jakobbossek avatar jakobbossek commented on July 30, 2024

checkStuff now checks, if the infill criterion needs se estimation and if the learner has support for that. If not the an error message is presented to the user with the hint to use makeBaggingWrapper.

from mlrmbo.

berndbischl avatar berndbischl commented on July 30, 2024

Huh?

We already had that check!


    if(control$infill.crit %in% c("ei", "aei") && !learner$se)
      stopf("The infill criterion needs the learner to support the prediction of standard error, but the provided learner does not (you could use the mlr wrapper makeBaggingWrapper to bootstrap the standard error estimator).")
    if(control$infill.crit %in% c("ei", "aei", "lcb") && learner$predict.type != "se")
      stopf("For infill criterion '%s' predict.type of learner %s must be set to 'se'!%s",
        control$infill.crit, learner$id,
        ifelse(learner$se, "",
          "\nBut this learner does not seem to support prediction of standard errors!"))

Why did you basically add the same lines (without lcb, which also need se)?

from mlrmbo.

berndbischl avatar berndbischl commented on July 30, 2024

Nadja, can you please explain you original problem?

from mlrmbo.

berndbischl avatar berndbischl commented on July 30, 2024

Also check that we have a unit test for EI with model != km!

from mlrmbo.

nbauer2 avatar nbauer2 commented on July 30, 2024

Yes, it works. At the moment I am using "ei" with randomForest for example.

from mlrmbo.

berndbischl avatar berndbischl commented on July 30, 2024

Nadja, do you have any remaining issues?

Other, Jakob, pls check the unit tests and then close this, when the checkStuuf method is fixed again

from mlrmbo.

jakobbossek avatar jakobbossek commented on July 30, 2024

Fixed checkStuff. We have a unit test for EI with model != Kriging already in test_infillcrits.

from mlrmbo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.