Rolling Window Features in Pandas: Moving Averages for ML
Rolling means, standard deviations and slopes in pandas, the shift(1) rule that stops leakage, plus how much an unshifted window inflates your validation score.
Lag Features in Pandas: Give Your Random Forest Memory
Build lag features in pandas, feed them to a random forest, and fix the trend problem by predicting the change instead of the level, with measured results.
Pandas Hourly Data: Calendar Features and a Leak-Free Split
Copy-paste pandas for hourly data: clean the index, add calendar and cyclical features, build safe lags, split by date and validate walk-forward with a gap.
How to Split Time Series Data Without Leaking the Future
Chronological holdouts, TimeSeriesSplit with gaps, safe features and preprocessing, measured on synthetic data, plus the eight checks that catch leakage.
Stop One-Hot Encoding Hours and Days: Cyclical Encoding Explained
Sine and cosine encoding for hours, weekdays and months in scikit-learn, benchmarked against one-hot encoding, plus the cases where one-hot still wins.
Time Series Features: Stop Training on the Future
Lags, rolling windows, cyclical encodings and leakage-safe validation in pandas and scikit-learn, plus the forecast-horizon rule that keeps your score honest.
LLM Courses That Actually Teach Multi-Provider Apps
Most LLM courses teach one framework and quietly assume just one model. These six resources are the few whose own pages mention multiple providers at all.
AI Coding Assistants: 8 Ways to Bring Your Own Model
Eight coding assistants, one question each: can you point it at your own model endpoint, where do your keys live, and what quietly breaks when you actually do?
Hosting an LLM Gateway: The Cluster You Don't Need
Size and host a self-hosted LLM gateway: LiteLLM's per-worker CPU and RAM, Postgres and Redis sizing, worker rules, managed options and real hardening.
OpenRouter Alternatives: Pick by the Reason You Leave
Best OpenRouter alternatives by reason: Vercel, Requesty, LiteLLM, Bifrost, Portkey, Cloudflare, Kong, Groq and Fireworks, plus the honest fee maths too.
LLM Gateways Compared: 9 Options, No Vendor Rankings
Nine LLM gateways compared honestly: LiteLLM, Bifrost, Portkey, Kong, OpenRouter, Vercel, Cloudflare, Helicone and TrueFoundry, with fees and caveats.
OpenAI-Compatible APIs: The Fields They Ignore
One client, four providers, four contracts: what Anthropic, Gemini, Ollama and vLLM really do with the OpenAI fields you send, and what breaks silently.