regression

Regression is the quiet workhorse of applied machine learning, and this section is where we pull back the curtain on what actually works. You'll find practical deep dives into Tobit models recovering hidden salary effects that ordinary least squares misses, and spline-based regression that converges faster than MLPs on complex 4D data. The conversation here is grounded: tree-based models like LightGBM and CatBoost get tested against simple baselines for bike-share forecasting, and a careful eye is kept on scikit-learn defaults that AI assistants might write without scrutiny. Data leakage, measurement error that makes nonlinear data look linear, and the real value of semi-supervised learning when you have labels all come up regularly. Whether you're forecasting a product launch with no history or building robust curves from messy data, this section treats regression as a craft to be refined, not a black box to be trusted.

Towards Data Science

OLS Hides Salary Data: Recover Hidden Effects With Tobit Models

A simulated salary survey reveals a hard truth about hidden data: OLS shrinks a $5k-per-year effect to just $3.2k. That's not a modeling failure, it's a structural one, caused by censored observations. This post rebuilds Tobit and truncated likelihoods from scratch to recover the true signal. It's a practical, code-driven guide for anyone who suspects their spreadsheets or regressions are hiding more than they show. For another take on practical modeling, explore what four simple models reveal about bike-share forecasting.

Towards Data Science

What Four Simple Models Reveal About Bike-Share Forecasting

A 48-hour Capital Bikeshare experiment put XGBoost, Ridge, SARIMA, and Prophet head-to-head against simple baselines, and the results challenge how we think about forecast complexity. The study carefully addressed missing hours and data leakage, giving each model a fair test. Sometimes the simplest approach wins. For those exploring how AI reshapes decision-making, our related piece on turning an LLM into a faster decision engine offers a natural next step.

Machine Learning

When you have labels, classic models outperform the AI hype

Classic models beat the hype when you have labels. We tested embedding inputs with a cheap model, then fitting a simple sklearn model on top using your own labels. The result? A 37% error reduction against Jev, at a fraction of the cost. It's not glamorous, but it works. For deeper context on smarter decision-making, see our guide on "How Your Agent's Tools Can Make Smarter Decisions."

Machine Learning

Forecasting a product launch without history requires a smarter approach

Predicting sales for a product with no history is a challenge that demands a smarter approach than simply leaning on past data. The current XGBoost model trained on historical invoices is a reasonable start, but it's understandable why the team lacks confidence. You need a method that accounts for the unknown. For deeper insight into how AI is reshaping data-driven decisions, our piece on training an AI on 100 million square feet of building data offers a parallel.

Spline-based regression outpaces MLPs in fitting 4D Mandelbulb data
Machine Learning

Spline-based regression outpaces MLPs in fitting 4D Mandelbulb data

An independent researcher has spent a year developing K-Splanifolds, a fast K-dim hermite spline manifold algorithm for general-purpose regression. The third version, KS3, now outpaces MLPs in fitting 4D Mandelbulb data via gradient descent, converging faster with nearly identical GPU latency. That's a meaningful result for anyone tired of traditional model trade-offs. KS3 holds its own across noise removal, geometric fitting, and financial prediction, and the code is open for exploration.

Towards Data Science

Build Smarter Curves Without the Noise From Messy Data

Messy data shouldn't dictate your curve. In the latest of our Robust Estimation Series, we show how polynomials and splines let you build accurate models even when outliers try to pull results off course. Closed-form fitting methods cut through the noise so your insights stay grounded in signal, not spurious points. If you're tired of watching rogue data warp your analysis, this approach restores control. For another take on separating signal from noise, see our piece on decoding the AI job requirement beyond the buzzword.

Data Science

Measurement error can make nonlinear data look deceptively linear

Measurement error can quietly disguise nonlinear data as a straight line, and that deception has real consequences for anyone building models on shaky foundations. When your visual patterns look tidy but the underlying relationships aren't, your analysis inherits that hidden distortion. It's a reminder that data hygiene matters as much as algorithm choice. For those exploring how modern tools handle these nuances, our related piece on Polars 2.0 offers a practical look at what thoughtful engineering can bring to your workflow.

When AI Writes the Code, Do You Trust the Defaults?
Towards Data Science

When AI Writes the Code, Do You Trust the Defaults?

AI assistants are remarkably good at writing code, but they don't always question the assumptions baked into the libraries they use. That gap is where subtle errors hide. This piece examines five scikit-learn defaults that deserve a second look before you ship. It's a practical, grounded reminder that trusting the tool isn't the same as understanding it. If you're building for production, this is worth your attention. For broader context on model deployment challenges, our related piece on real-world computer vision offers useful perspective.

Machine Learning

Shared baselines across papers keep your research honest and efficient.

Running the same baseline models across two papers is a practical move, but it raises a fair question about duplication. If the RMSE tables match exactly and only the proposed models differ, you are reusing your own work, which is generally acceptable in research. However, journals may view this as redundant publication if not disclosed clearly. Transparency matters here. Disclose the shared baselines in both submissions and cite the other paper. That approach protects your integrity and keeps the focus on your novel contributions.

Machine Learning

How a single bug fix sharpens BayesianRidge uncertainty estimates

A subtle bug in BayesianRidge's uncertainty calculation slipped into sklearn 1.8, and this notebook walks through the exact formulas behind `predict` on both versions. It's a sharp exercise in tracing what changed, and it's the kind of forensic digging that keeps models honest. If you've ever wondered how small shifts in regression internals ripple outward, this is worth your time. For a broader look at how data quality issues surface elsewhere, our piece on catching AI slop before it skews your model pairs nicely here.

Machine Learning

When models disagree, explore how interactions reshape your data's story.

LightGBM's failure to fit your toy example isn't a flaw in the algorithm, it's a lesson in how it greedily builds trees. When you handed it only "AB," it couldn't recover the interaction because the split gain calculation didn't favor the right thresholds early on. CatBoost's symmetric trees and ordered boosting handle this naturally. Your intuition about "lazy" splits is spot on. For deeper dives into such modeling quirks, our piece on scikit-learn defaults offers a fitting companion.

How Data Leaks Inflate Results and Mislead Your Models
Towards Data Science

How Data Leaks Inflate Results and Mislead Your Models

A car price model that scored twelve R-squared points higher than it should have wasn't a breakthrough; it was a leak. A preprocessing pipeline let the model peek at the test set before the exam, and the inflated results masked a deeper problem. That kind of shortcut doesn't just distort one metric, it erodes trust in the entire evaluation. It's a sharp reminder that data hygiene is part of model integrity, not a side note.

Unlocking Data Potential by Combining Labelled and Unlabelled Insights
Towards Data Science

Unlocking Data Potential by Combining Labelled and Unlabelled Insights

Most of your data sits unlabeled, and that's not a problem to solve, it's an opportunity to leverage. Semi-supervised learning sits between the fully labeled and the entirely unlabeled, using a small amount of guidance to make sense of the larger, messier whole. This primer walks through the algorithms that make that possible and, just as importantly, where they stumble. It's a practical read for anyone who wants to get more from their data without drowning in annotation costs.

Explore how deep learning unlocks new insights in single-cell analysis.
Machine Learning

Explore how deep learning unlocks new insights in single-cell analysis.

A survey covering 25 deep learning methods across six subcategories for single-cell RNA sequencing analysis is a lot of ground to cover. The author of this paper didn't just list them; they organized each method by purpose, architecture, metrics, and, crucially, its specific novelty. That last part is what makes the survey genuinely useful for anyone trying to navigate the field. It's one thing to know a model works, another to understand why it was built differently.