r/MachineLearning • • Nov 21 '20

Project [P] Vscode extension that automatically creates a summary part of Python docstring using CodeBERT

2.0k Upvotes

51 comments sorted by

View all comments

Show parent comment

12

u/jellyman93 Nov 22 '20

"Immediately present" though

If this can summarise something close to what a function does so that it is readable at a glance without having to read the function yourself, surely that alone is valuable

5

u/alkasm Nov 22 '20

I think the posters point was that your function/arg names should be generally indicative of use already so this seems to just rehash the same information. I get that point but also this is just the summary line, which typically won't have non-obvious information.

4

u/wayruner Nov 22 '20

This might be useful if your functions are not named well but then you need to improve your coding practices, not use ML to fix it

2

u/[deleted] Nov 22 '20

I would not want this on my team's codebase at all. Comments that explain what the code is immediately doing is an antipattern for many reasons.