Skip to content
Machine Learning · Python · Data Science

Practical guides for ML practitioners and data engineers.

No fluff. Tutorials that go from problem to working code. Error fixes with exact tracebacks and root causes.

Browse articlesDeveloper toolsWork with me

Fix a common error

All problem hubs →
Recent articles
Robotics & AI News
Gemini Robotics 2: Why "Whole-Body Control" Is the Actual News, Not the Humanoid Hype

Google DeepMind's Gemini Robotics 2 is a three-model system (a VLA, an embodied-reasoning model, and an on-device VLA) that controls a whole humanoid body, not only the upper body used for table-top tasks in earlier models.

Error Fix
Fix "ValueError: could not convert string to float" in sklearn

Fix scikit-learn's ValueError: could not convert string to float, caused by passing categorical/string columns straight into a model. Covers get_dummies, LabelEncoder pitfalls, and a proper ColumnTransformer pipeline.

Error Fix
Fix sklearn "X does not have valid feature names" Warning

Fix scikit-learn's UserWarning: X does not have valid feature names / X has feature names, but..., caused by mixing DataFrames and NumPy arrays across fit/transform. Includes the ValueError variant.

Error Fix
Fix XGBoost "DataFrame.dtypes for data must be int" Error

Fix XGBoost ValueError: DataFrame.dtypes for data must be int, float, bool or category. Reproduced on XGBoost 3.4.1 with pandas 3 and 2.2: find the column, then cast, encode or use category dtype.

Error Fix
Fix "numpy.dtype size changed" After a NumPy 2 Upgrade

Fix ValueError: numpy.dtype size changed, may indicate binary incompatibility. Reproduced with pandas, scikit-learn, scipy and OpenCV wheels built for NumPy 1.x running on NumPy 2, with the fixes that worked.

Error Fix
huggingface_hub ImportError: is_offline_mode, cached_download

Fix cannot import name 'is_offline_mode', 'cached_download' or 'HfFolder' from 'huggingface_hub'. Reproduced on real version combinations, with the pins and code changes that fixed each.

Error Fix
FAISS nprobe, IndexIVFPQ and GPU Memory Errors Fixed

Measured on faiss 1.15.1: nprobe above nlist adds nothing, -1 results from small nprobe, the exact IndexIVFPQ d % M and nbits errors, bytes per vector, and GPU alloc fail.

Error Fix
Fix HuggingFace Tokenizer Padding and pad_token Errors

Fix 'Asking to pad but the tokenizer does not have a padding token', 'Unable to create tensor', ignored max_length and right-padding warnings in transformers. Reproduced on transformers 5.17.0.

Error Fix
Fix LangChain ModuleNotFoundError & LlamaIndex Errors

Fix 'No module named langchain_openai', old langchain.chat_models imports, 'Input should be an instance of Runnable', ServiceContext and embedding dimension errors. Reproduced on langchain 1.4.2.

MLOps
Data Drift Alerting in Production: What to Monitor and When to Act

A practical guide to data drift alerting in production ML systems: what to monitor, how to query model outputs against ground truth in ClickHouse, when to alert, and how to support rollback decisions.