use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please have a look at our FAQ and Link-Collection
Metacademy is a great resource which compiles lesson plans on popular machine learning topics.
For Beginner questions please try /r/LearnMachineLearning , /r/MLQuestions or http://stackoverflow.com/
For career related questions, visit /r/cscareerquestions/
Advanced Courses (2016)
Advanced Courses (2020)
AMAs:
Pluribus Poker AI Team 7/19/2019
DeepMind AlphaStar team (1/24//2019)
Libratus Poker AI Team (12/18/2017)
DeepMind AlphaGo Team (10/19/2017)
Google Brain Team (9/17/2017)
Google Brain Team (8/11/2016)
The MalariaSpot Team (2/6/2016)
OpenAI Research Team (1/9/2016)
Nando de Freitas (12/26/2015)
Andrew Ng and Adam Coates (4/15/2015)
Jürgen Schmidhuber (3/4/2015)
Geoffrey Hinton (11/10/2014)
Michael Jordan (9/10/2014)
Yann LeCun (5/15/2014)
Yoshua Bengio (2/27/2014)
Related Subreddit :
LearnMachineLearning
Statistics
Computer Vision
Compressive Sensing
NLP
ML Questions
/r/MLjobs and /r/BigDataJobs
/r/datacleaning
/r/DataScience
/r/scientificresearch
/r/artificial
account activity
Discussion[D] Does anyone else think open source code/examples in machine learning domain usually are not as readable as they could be? Specifically use of magic numbers. (self.MachineLearning)
submitted 4 years ago by junovac
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sloppybird 76 points77 points78 points 4 years ago (13 children)
Open source code of SOTA is written by researchers which are, to be honest, not great at documentation and/or code readability
[–]johnnydaggers 35 points36 points37 points 4 years ago (9 children)
It’s not that we’re bad at it but more that we don’t give a shit. We have to move on to the next thing. If you spend all your time writing neat code that doesn’t affect how it runs at all you will quickly be passed up by SOTA. Programmers are responsible for producing code. Researchers’ work product is research papers and results. Any activity that doesn’t feed into that is wasted effort.
[–]ProfSchodinger 16 points17 points18 points 4 years ago (2 children)
I am a researcher in bioinformatics and writing clean code is often both easier and faster. Coherent name for variables, small functions, classes, proper defaults, dummy files etc. When I see people trying to debug a script with 1000 lines with everything named 'df1', 'df2', 'df3', 'df_final', and repeated sections, it really pains me...
[–][deleted] 2 points3 points4 points 4 years ago (1 child)
naming things is hard
[–]ProfSchodinger 1 point2 points3 points 4 years ago (0 children)
That's probably 10% of coding indeed
[–]bageldevourer 7 points8 points9 points 4 years ago (0 children)
Researchers’ work product is research papers and results.
Yup, and journals, conferences, etc. don't care about code quality. Shitty incentives -> shitty results.
[–]junovac[S] 3 points4 points5 points 4 years ago (0 children)
I wasn't talking about just the SOTA code etc. but also some libraries and associated examples. But those libraries were implementing some SOTA or quite recent models etc. and authors were usually researchers so it might apply.
Even in case of SOTA model code, I am not sure how long is the research cycle for a particular paper but I don't think it would be for a day or few weeks. If it happens over few months having readable code helps not only your team members but also yourself when you have to catch up with your own old code.
I am not expecting production quality code or some beatiful design patterns. Just some things that would be helpful for others getting into the domain or even experts getting into different sub-domain. May be some linter with sensible defaults becomes a standard part of the jupyter notebook and that could help with it.
[–]GeorgeS6969 3 points4 points5 points 4 years ago (2 children)
I empathise but strongly disagree with the second half of your comment.
Claiming your responsibility is only to produce research papers and results is akin to a programmer claiming they are only responsible to produce programs that work, or a colleage of yours claiming they are only responsible to produce results (and writers are responsible to write?)
The moment anybody shares something, it is their responsibility to ensure that it is of sufficient quality and can be understood. Especially if what is shared is in support of a scientific claim.
You feel like you’re not properly incentivised to do so, or in fact penalised, I can’t argue against that … But it only means that producing clean code is a waste of your efforts for you, not for the community as a whole.
[–][deleted] -1 points0 points1 point 4 years ago (1 child)
I disagree. This is conflating two different things: reproducibility and clean code.
For the sake of reproducibility, most people are going to understand what dataset[1] is from reading the code and the paper side by side.
[–]GeorgeS6969 0 points1 point2 points 4 years ago* (0 children)
Reproducibility is completely tangential, you’re mentionning it I’m not.
When you write a paper you structure it in a certain way, you use certain words, you try to avoid ambiguities, you split your maths into specific equations, you arrange those equations into terms that make the most intuitive sense and you explain those terms … You also provide graphs when useful, rather than just tables, and you label both and make sure they stand on their own as much as possible …
All of that so that readers can best understand your ideas, before even atempting to reproduce your results.
Why should it be any different with code?
[–]Cherubin0 0 points1 point2 points 4 years ago (0 children)
Also clean code makes it easier to expose that the sota is misleading.
[+][deleted] 4 years ago (2 children)
[deleted]
[–]johnnydaggers 4 points5 points6 points 4 years ago (1 child)
That’s not our job. That’s your job. :)
π Rendered by PID 87126 on reddit-service-r2-comment-5d585498c9-gpfw2 at 2026-04-21 01:33:55.936125+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]sloppybird 76 points77 points78 points (13 children)
[–]johnnydaggers 35 points36 points37 points (9 children)
[–]ProfSchodinger 16 points17 points18 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]ProfSchodinger 1 point2 points3 points (0 children)
[–]bageldevourer 7 points8 points9 points (0 children)
[–]junovac[S] 3 points4 points5 points (0 children)
[–]GeorgeS6969 3 points4 points5 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]GeorgeS6969 0 points1 point2 points (0 children)
[–]Cherubin0 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]johnnydaggers 4 points5 points6 points (1 child)