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

Probabilities sometimes slightly higher than 1 in Local mode #88

Open
ukaratay opened this issue Jan 11, 2017 · 0 comments
Open

Probabilities sometimes slightly higher than 1 in Local mode #88

ukaratay opened this issue Jan 11, 2017 · 0 comments

Comments

@ukaratay
Copy link

This line causes the problem. I currently solved it by clipping the probability.

var prob = ((GenericTopSlotExplorerState)dp.InteractData.ExplorerState).Probabilities[action - 1];
var label = new ContextualBanditLabel(action, -dp.Reward, (prob < 1) ? 1 : ((prob > 0) ? 0 : prob));

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

1 participant