-
Notifications
You must be signed in to change notification settings - Fork 321
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
Abandoned arms and trials are not excluded from modeling data #506
Comments
Hi @XRen615 ! Marking the arm abandoned is indeed the right way to do this. When you say "it seems the abandoned arm is still taken into account in model fit process", what makes you think that? |
well, I made up a case like this
As every x_i is defined between (0,10), manually set arm 0_0 to be 9999999 will make it a sufficient large outlier. Later, after attach_data, I abandoned this arm 0_0 by Finally, I plot the contour by apparently the large outlier I abandoned affected the prediction, otherwise I was expecting something like below as the metrics is actually a sphere Maybe I misused something? Thanks! |
I don't think so, it seems that we don't actually properly filter out abandoned arms if they have data associated with them: We should add a check that filters out data associated with abandoned arms. Ideally we'd do something smarter about handling systematic outlier observations, but doing this generically for a broad range of problems without requiring domain knowledge is tough. For now ignoring abandoned arms is probably the best bet in the short term. |
@XRen615, we'd like to understand your usage pattern a little bit better to ensure we fully support it (and fix the filtering of abandoned arms). A few questions that would help us understand your use case better:
|
Thanks guys!
I attach the whole script below which can reproduce the problem for your reference
|
@XRen615, thank you very much, this is super helpful! A few things:
Let me know if this makes sense and whether the suggested workaround helps! |
@lena-kashtelyan thanks for the help!
I hope this will work? Thanks! |
|
The fix for this is now on master and will be included in the next stable version release we do (should be within a week or two). |
Hi, I may have missed some of the details, but I guess most of the discussion here addresses an issue about handling abandoned arms in Upon this discussion, I have added some extra tests in my implementation that uses
|
Hi, @ugurmengilli! Is there a reason why you need |
There isn't, actually. I started using |
Cool, then you can use the Dev API with regular |
This is now fixed and included with latest stable release, 0.2.0. |
hey guys, thanks for offering such a great lib!
In case I found the data of an already completed arm is invalid, how can I remove it to make sure the model prediction is not effected by this invalid arm?
I tried to abandon this arm like
experiment.trials[0].mark_arm_abandoned(arm_name='0_0')
but seems the abandoned arm is still taken into account in model fit process.
Thanks in advance :)
The text was updated successfully, but these errors were encountered: