Best practices for coding in ML/DS - Techniques to construct your project
Mher Khachatryan
1
About Me
Define your problem
One time code for tiny problem
Project with long lifecycle
3
Define your problem
One time code for tiny problem
Project with long lifecycle
4
If you want to be efficient in the long run, you gotta be slow
5
6
What does poor design/code lead to?
7
What does poor design/code lead to?
8
What does poor design/code lead to?
9
What does poor design/code lead to?
10
What does poor design/code lead to?
11
Developing new features becomes harder/expensive
12
Developing new features becomes harder/expensive
13
What does poor design/code lead to?
14
What does poor design/code lead to?
15
Don't Panic! ��There is a solution
16
Write code for humans
*In Python they take but negligibly small
17
18
Write code for humans
19
Write code for humans
20
Write docstrings
21
Write docstrings
22
Jupyter Notebook is evil
23
24
Use IDEs
PyCharm CE, Free
PyCharm Pro, Paid
25
Use IDEs
VS Code
DataSpell
26
Use Version control
27
Make your experiment reproducible
28
Make your experiment reproducible
29
30
Logging/Debugging
Choose your weapon
31
Use principles
32
33
Think iterative
34
Define your problem
One time code for tiny problem
Project with long lifecycle
35
Thank you!
Q&A
36