Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Regarding the short variables names, I actually like it a lot. It's nice because you don't have to read as much.

Once you are familiar enough with the abbreviations, it becomes much easier to read. Just from looking at this code, I can already tell you bs is batch size, bptt is back-projection through time. And then probably dl is data loader, lm is language model, md is model data. No idea what vs or 1 is but I can just look at the docs for LanguageModelData, which takes what? less than 30 seconds to read?

I think it's worth it because you can just look at one line of code and know what's going on. Instead of parsing through a paragraph of code that does the same thing.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: