Ahmed Besbes – Medium
Get to Know Me Through My Work (Updated October 2021)
Bio, best work on Medium and extended online portfolio
Hey there, welcome to my Medium profile! My name is Ahmed. This blog is a place where I learn and share articles about machine learning, software, and programming tips.
A short bio 📖
I’m currently a machine learning engineer at a French scale-up and I’ve previously worked as a data…
Quick sanity checks before hitting the production road
Being part of a company that values scalability, I daily see, as a data scientist, the challenges that come with putting AI-based solutions in production.
These challenges are numerous and cover a variety of aspects: modeling and system design, data engineering, resource management, SLA, etc.
I don’t pretend mastery in…
Stop the manual work, reuse project templates instead
Here’s a situation a lot of data scientists are familiar with.
Every time you start a new project, you reuse the structure of older projects. You go through their folders and copy-paste them, you remove the unnecessary files, you rename the remaining ones with your new project’s specifics, and you…
8 Reasons to Start Using Pydantic to Improve Data Parsing and Validation
Improving your apps goes with controlling their data quality
Image by the author — made on carbon.now.sh
In one of my previous posts, I looked at dataclasses as a way of writing python classes that act as data containers.
I found the dataclasses project amazing: it implements a lot of nifty methods under the hood to prevent you from writing boilerplate code, it provides a concise and…
Image made by the author
As a data scientist, I daily use Python to build applications that rely on credentials and sensitive settings.
Here are some examples of those, off the top of my head:
API keys to access third-party services
Email addresses or personal data (name, age, social security number, etc.)
Towards efficiency and less boilerplate code
Starting from version 3.7, Python has introduced dataclasses (see PEP 557), a new feature that defines classes that contain and encapsulate data.
I recently started using this module in a couple of data science projects and I’m really enjoying it. …
How to Speed up Your Python Code With Caching
A quick guide to using cachetools
Picture of Anton Makarenko from Pexels
A few weeks ago, I started looking into optimizing my code. I learned about common anti-patterns and worst practices, looked at how memory was allocated when Python objects are created and finally understood concepts such as multithreading and multiprocessing as well as the difference between the two.
Today, I’ll tell…
How to Track the Progress of Parallel Tasks In Python with TQDM
Combine TQDM with multiprocessing
Python is a great programming language. It’s a swiss knife that’s used in multiple areas: analyzing and visualizing data, training machine learning models, building APIs, scraping websites, DevOps, MLOps, and obviously, much more things.
The versatility of this language, among other things, comes however with a cost: Python is slow…
7 Reasons Why You Should Use the Streamlit AgGrid Component
Improve displaying dataframes with the best JavaScript data grid
I use Streamlit a lot.
It’s a great library to quickly prototype visually appealing web applications that interact with data and machine learning models in a fun way.
As a data scientist, I find Streamlit extremely helpful to share experiments with other team members.
What makes Streamlit even better, besides being a world-class product, is…
You can learn as much from reading a bad code as you can from reading a good one
I’ve been coding in python for more than six years and up until now, I’m still learning new concepts and good practices to improve my code quality.
Figuring out how to do things was not easy at first when I started: I had to learn it the hard way.