10 Useful ML Practices For Python Developers

Fast bug-free coding

Pratik Bhavsar
Feb 26, 2020 · 5 min read

→ ML in production series

Just because we can make models doesn’t mean we are gods. It doesn’t give us the freedom to write crap code.

1. Learn to write abstract classes

2. Fix your seed at the top

3. Get started with a few rows

4. Anticipate failures(sign of a mature developer)

5. Show the progress of processing

6. Pandas can be slow

import modin.pandas as pd

7. Time the functions

Not all functions are created equal.

8. Don't burn money on cloud

Nobody likes an engineer who wastes cloud resources.

Let’s be a bit responsible and not generate CO2. 😅

9. Create and save reports

Anyways, management love reports right? 😆

10. Write great APIs

All that ends bad is bad.

Meet the combo — Fastapi + uvicorn

pip install fastapi uvicorn
uvicorn main:app --workers 4 --host --port 8000


Modern NLP

All the latest techniques in NLP — Natural Language…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store