-
Notifications
You must be signed in to change notification settings - Fork 10
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
add 'distinct' argument to VectorParams #206
Conversation
I don't know if we want to to really deal with that here. It will introduce more problems:
As we already discussed we can transform a logical vector param to a distinct factor vector. Also is this just a restriction which you could also include in the I vote for:
|
i also dont think we should do this here. but can we please explain the "issue" first? |
Quoted from above: "Currently, sampling with replacement is hardcoded for vector params. Addition: If you create a "DistinctVectorParam" with let's say 15 values and set Should I open an issue in paradox? |
i read the code, i also read your text here, still had some problems to understand what exactly is to be adressed.
yes, i think it makes sense to continue discussing there. i have some things to mention |
let me try to summarize here already: a) the current PH implementation allows only for uniform sampling. you now kinda change that, just for a special case. b) IMHO we are looking at a design problem. params should not implement their sampler. they should simply descibe params. the sampler should be a separate service class. then this can be specialized |
To enable sampling without replacement.
Currently, sampling with replacement is hardcoded for vector params.
This is needed to sample unique filter methods which are going to be used in ensemble filters.
@jakob-r Is this possible in paradox already?
Edit: The fix obv only works for tuneXXX methods that use
sampleValue
. MBO does not. So maybe we need to tackle this in multiple repos..