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

generateDesign ignores fun argument when augmenting(?) #224

Open
mb706 opened this issue Feb 19, 2020 · 3 comments
Open

generateDesign ignores fun argument when augmenting(?) #224

mb706 opened this issue Feb 19, 2020 · 3 comments

Comments

@mb706
Copy link
Collaborator

mb706 commented Feb 19, 2020

Not sure, but this looks like a bug -- it should probably call fun instead of randomLHS?

@jakob-r
Copy link
Member

jakob-r commented Mar 16, 2020

I already came across this line and decided that it is probably a deliberate decision.
This is only called if points got deleted because they do not fulfill the requirements.
Also there is a specific augmentation strategy in lhs which also don't use here.

Also this is documented here:

#' Note that augmenting currently is somewhat experimental as we simply generate
#' missing points via new calls to [lhs::randomLHS()], but do not add points so
#' they are maximally far away from the already present ones. The reason is that
#' the latter is quite hard to achieve with complicated dependencies and
#' forbidden regions, if one wants to ensure that points actually get added...
#' But we are working on it.

Well, the last sentence is a blatant lie 😆

So I would say it's not really a bug. What is your opinion?
I would just leave it like that and close this issue if you agree.

@mb706
Copy link
Collaborator Author

mb706 commented Mar 16, 2020

I'm wondering why fun shouldn't just be called a second time. Does it not work with the other lhs::-functions? I'm thinking a user may want to have some biased sampling or call a custom function for some other reason, and would then be annoyed that his function doesn't get called again when augmenting.

@jakob-r
Copy link
Member

jakob-r commented Mar 17, 2020

Feel free to change it 🙂 Maybe the original author wants to have a word @berndbischl 😉

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