Add components of paths mentioned in comments as features of the component model - #6505
Open
marco-c wants to merge 2 commits into
Open
Add components of paths mentioned in comments as features of the component model#6505marco-c wants to merge 2 commits into
marco-c wants to merge 2 commits into
Conversation
marco-c
force-pushed
the
path_components
branch
from
August 4, 2026 15:01
41be153 to
d0eb9ff
Compare
suhaibmujahid
left a comment
Member
There was a problem hiding this comment.
The test task is failing.
Comment on lines
+652
to
+655
| # In case of stack traces, the position is important (e.g. component of the first path is more indicative than component of the last path, | ||
| # which tends to be a "main"-like entry point common to most stack traces). We weight each mention by the reciprocal of its rank among all | ||
| # paths mentioned in the comments, and sum the weights of repeated mentions of the same component. | ||
|
|
Member
There was a problem hiding this comment.
What if we make the component and the position as one feature, and then the model will learn the importance based on the position, which could learn to detect outlier patterns.
Collaborator
Author
There was a problem hiding this comment.
What do you mean by "one feature"? Do you mean one-hot COMPONENT-POSITION? That would explode quickly with too many combinations, no?
Member
There was a problem hiding this comment.
Yes, we would try that and see (we could limit the number of components through the mapping). Then, if it does not work, we can get one for the first line, another for the last line, and then for all things in the middle, we could use weights.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Train on Taskcluster: component