Categorical Encoding Methods: One-Hot vs Label vs Target
A model can’t read text labels directly. Here’s how one-hot, label, and target encoding compare as categorical encoding methods, and which fits your model type.
Read more →Notes on data engineering, AI and building things end to end.
A model can’t read text labels directly. Here’s how one-hot, label, and target encoding compare as categorical encoding methods, and which fits your model type.
Read more →
Not every unusual value is a mistake. Here’s how IQR, Z-score, and Isolation Forest differ as outlier detection methods, and how to avoid deleting real signal by accident.
Read more →
Correlated features can make regression coefficients unstable, even when accuracy looks fine. Here’s how to detect multicollinearity in regression and when it’s actually a problem worth fixing.
Read more →
A single train/test split can be unreliable when data is scarce. Here’s how cross-validation for small datasets fixes that, and a real project example.
Read more →
Code gets versioned by default. Datasets usually don’t. Here’s why data versioning matters for reproducibility, what to actually track, and a real project example.
Read more →
L1 and L2 regularization both fight overfitting, but shape the model differently. Here’s L1 vs L2 regularization explained — when each helps, and a real project example.
Read more →
Feature engineering vs feature selection is expansion versus reduction — one creates new inputs, the other filters existing ones. Here’s why the order matters, with real project examples.
Read more →
When one class vastly outnumbers another, accuracy alone hides the problem. Here’s class weights vs SMOTE — how each works, which to try first, and a real project example.
Read more →
A model’s default settings are rarely its best. Here’s how grid search, random search, and Bayesian optimization compare as hyperparameter tuning methods, and which to actually use.
Read more →
A single model has a single point of view. Here’s how ensemble methods in machine learning combine multiple models for better results — bagging, boosting, stacking — with a real project example.
Read more →