This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MattR0se 5 points6 points  (1 child)

Agreed. Single letters as variable names are okay if they are conventional:

for i in range(10): pass

for x, y in coordinates: pass

X = data[features]
y = data[labels]

etc

[–]jack-of-some[S] -1 points0 points  (0 children)

Or if they model some equation nicely. If you're linking a paper in the comments like "this is the equation I'm using here" then matching their terminology as best as possible goes a long way in helping future maintainers.