-
Notifications
You must be signed in to change notification settings - Fork 368
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
Query-time boosting affects model execution but not feature value logging #368
Comments
This is true, boosting only affects the output score of the model. This is I think what is expected when you boost a query: the query score is multiplied by the boost value. If the query boost was to affect the feature values then I'm not sure how this would work:
I think it's less error prone to have features as independent as possible from their context (parent query boost here) to reduce possible discrepancies between training and runtime. |
@tmanabe thanks for digging into this! I'd be in favor of forcing the boost to 1 for feature queries and apply the boost a posteriori from the scorer (https://github.com/o19s/elasticsearch-learning-to-rank/blob/main/src/main/java/com/o19s/es/ltr/query/RankerQuery.java#L312). @worleydl do you have any thoughts on this? |
For context I think the behavior changed with b907213#diff-07788001c91b0b5c03be973de2a368900204bab6c6fc6d3255ec34bcf6184c09L239 where we normalized explicitly with a boost set to 1.0F (elastic 6.1.0 upgrade). |
Thanks for the additional info David. Definitely seems like a regression maybe we can add some additional test cases around it and get the boost setup as you describe? |
@worleydl coming back to this issue, should we lay out the unit test requirements and tag this as help wanted (or to be developed)? |
Hi. I would like to ask a question about this plugin and query-time boosting.
I am afraid that query-time boosting affects only execution of models but does not affect feature value logging.
In my opinion, this behavior may lead to inaccurate modeling.
Is this an expected behavior?
A test case to reproduce the behavior:
main...tmanabe:different-feature-values
Thanks!
The text was updated successfully, but these errors were encountered: