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
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 controller, an embodied-reasoning VLM, and an on-device distillation) that finally coordinates a full humanoid skeleton instead of just an upper body bolted to a stationary base. What changed architecturally, and why it matters more than another robot demo video.

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, float, bool or category"

Fix ValueError: DataFrame.dtypes for data must be int, float, bool or category in XGBoost. Find the exact offending column, choose the right fix (encode, cast, or enable_categorical), and stop it from recurring on new data.

Error Fix
Fix "numpy.dtype size changed, may indicate binary incompatibility"

Fix ValueError: numpy.dtype size changed, may indicate binary incompatibility. Caused by a numpy ABI mismatch between packages compiled against different numpy versions. Includes the real fix, not just pip install --upgrade.

Error Fix
Fix "cannot import name 'cached_download'" from huggingface_hub

Fix ImportError: cannot import name 'cached_download' from 'huggingface_hub', plus the related HfFolder and use_auth_token deprecation errors that show up after upgrading huggingface_hub.

Error Fix
Fix FAISS nprobe/nlist Slowdowns, IndexIVFPQ Training Asserts, and StandardGpuResources Alloc Fail

Why raising FAISS nprobe past nlist silently degrades to exhaustive search, what triggers IndexIVFPQ's 'd % M == 0' and nbits assertion failures during training, and how to fix 'StandardGpuResources: alloc fail type TemporaryMemoryBuffer' GPU OOM errors.

Error Fix
Fix HuggingFace Tokenizer Padding Errors: No pad_token, Truncation, Left vs Right

Fix 'Asking to pad but the tokenizer does not have a padding token', tensor size mismatches from batched sequences, and silent left/right padding bugs in HuggingFace transformers tokenizers.

Error Fix
Fix LangChain ModuleNotFoundError & LlamaIndex Errors

Fix 'No module named langchain_openai', pydantic ValidationError expecting a Runnable, and LlamaIndex embedding dimension mismatch errors.

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.