Skip to content

Add components of paths mentioned in comments as features of the component model - #6505

Open
marco-c wants to merge 2 commits into
mozilla:masterfrom
marco-c:path_components
Open

Add components of paths mentioned in comments as features of the component model#6505
marco-c wants to merge 2 commits into
mozilla:masterfrom
marco-c:path_components

Conversation

@marco-c

@marco-c marco-c commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Train on Taskcluster: component

@marco-c
marco-c requested a review from a team as a code owner August 4, 2026 12:23

@suhaibmujahid suhaibmujahid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test task is failing.

Comment thread bugbug/bug_features.py
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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "one feature"? Do you mean one-hot COMPONENT-POSITION? That would explode quickly with too many combinations, no?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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

Successfully merging this pull request may close these issues.

2 participants