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

Forgetting the threshold in logPrediction causes bad request #114

Open
tbillington opened this issue Mar 9, 2022 · 0 comments
Open

Forgetting the threshold in logPrediction causes bad request #114

tbillington opened this issue Mar 9, 2022 · 0 comments

Comments

@tbillington
Copy link

tbillington commented Mar 9, 2022

When calling logPrediction using the nodejs library, I passed the option parameter in with computeFeatureContributions: true, however I forgot to add threshold too.

When I ran the code I got back a generic Error: bad request. It took me a little bit of fiddling with double checking urls, the app was running, etc before I checked the examples and tried adding threshold to see if it would help.

I initially assumed I wouldn't need the threshold because tuning was not supported for my model type in the first place.

Once I added threshold my code was working again.

Is there a better error that can be provided to clients if they are accidentally misusing the API?

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