Giter Club home page Giter Club logo

Comments (7)

mb706 avatar mb706 commented on July 22, 2024

The error informs you that the initial design size should be larger than the number of parameters you are optimizing for. You could increase the size of the initial design by increasing the n in generateDesign to above 9.

(When I run your example with just that, I still get an error because apparently the model in the background (DiceKriging) can not handle constant values well.)

des <- generateDesign(n = 10, par.set = ps)

des$y <- 1:10

works for me.

from mlrmbo.

dipenpatel235 avatar dipenpatel235 commented on July 22, 2024

@mb706 yes DiceKriging is not able to handle constant values well.
so i think we need to file bug them to also ?

from mlrmbo.

mb706 avatar mb706 commented on July 22, 2024

I did that, but I don't know how responsive they will be. If you frequently get constant values from your use case then you should probably handle that case separately, but it would be an unusual usecase.

I am assuming we have fixed the specific problem here so I am closing this issue.

from mlrmbo.

dipenpatel235 avatar dipenpatel235 commented on July 22, 2024

thanks @mb706
and according to your given value it is working fine to me also.

from mlrmbo.

jakob-r avatar jakob-r commented on July 22, 2024

If you frequently get constant values from your use case then you should probably handle that case separately, but it would be an unusual usecase.

You can use the removeConstantFeaturesWrapper from mlr on the regression learner that is used as a surrogate for such case. Be aware that this will prevent any exploration in the dimension/feature that is removed.

from mlrmbo.

dipenpatel235 avatar dipenpatel235 commented on July 22, 2024

@mb706
still i get below error when i am continues executing that code by changing value given by you.

<simpleError in validObject(model, complete = TRUE): invalid class “km” object: the number of experiments must be larger than the spatial dimension>

is there any way to we can set any dynamic value of n and 1:10 ?

des <- generateDesign(n = 10, par.set = ps)

des$y <- 1:10

from mlrmbo.

jakob-r avatar jakob-r commented on July 22, 2024

Unrelated to the error. Seeing the following lines

des <- generateDesign(n = 6, par.set = ps)
des$y <- 9999

It case it is part of your real code: You cannot just initialize the design with some random values for y. This will totally break the MBO process. They have to be real outcomes of the objective you want to tune.

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.