towards data science
The data science world moves fast, and this section tracks the signals that matter. You will find hands-on Python case studies, from A/B testing on Cookie Cats data to mapping a decade of USGS earthquakes, alongside rigorous model comparisons like DuckDB 2.0 versus Polars 2.0 on 335 million records. AI agents appear constantly: how to govern their skills with plugins, build MCP servers that leave orchestration to the host, or limit damage with five guardrails tested in 0.68 seconds. The limits of LLMs surface too, whether they are small models betting 82% on an 11th coin flip or RAG systems that ace textbook questions but score zero on fresh research. Expect practical frameworks, retry logic for multi-agent workflows, business translations for analytics engineering, and confidence scores that let AI handle 72.8% of queries at 98% accuracy. This is where theory meets production, and the evidence is always in the code.
Five Tests, 0.68 Seconds: How to Keep AI Agents Safe and Productive
Five tests, 0.68 seconds. That's all it takes to keep an AI agent both productive and safe. This practical approach uses strict Pydantic arguments, a tool allowlist, read-only SQLite, a step cap, and confirmed writes. These guardrails limit damage without stifling capability. It's a focused, testable strategy that makes agent deployment feel less risky. For those exploring deeper infrastructure, our piece on cloud coding agents like Claude Code offers a complementary look at reliable runtime setups.
Cloud coding agents like Claude Code run around the clock with two reliable setups
Claude Code's cloud environment flips on in seconds, making it the quick path for running coding agents around the clock. Renting a dedicated server trades that speed for full control. Both setups work reliably, but your choice depends on whether you value convenience or autonomy. We explore the trade-offs honestly. If you enjoyed our piece on translating data workflows for business stakeholders, you'll find the same practical thinking here.
Translating Data Workflows: The Missing Business Layer in Analytics Engineering
A metric changed. Stakeholders see a number move and assume a business shift. But the real cause might be a new join, a filter tweak, or a test that started failing. Grains, joins, filters, and tests are engineering details, not business translations. A four-step framework bridges that gap, keeping interpretation grounded in shared context. For deeper coverage on how logic grounds AI agents, see our related piece on Z3 solvers.
From Chatbot Errors to Z3 Solvers: How Logic Grounds AI Agents
Air Canada's chatbot promised bereavement fares it couldn't deliver, a costly reminder that language models don't reason. Neurosymbolic agents offer a fix: pair a large language model with a Z3 solver for guaranteed logical consistency. The solver is sound, but the English-to-logic translation remains fragile. This practical walkthrough shows how to build that pipeline in Python. For a deeper look at structured reasoning, see our piece on how a herder agent prioritizes questions by urgency.
Why Your Best Uplift Model Might Not Be the One That Wins
A calibrated Qini score of 0.0856 for a Linear DR learner beat the true-CATE ranking's 0.0826 on a million simulated customers. That should not happen. When your best uplift model is not the one that actually wins, the metric itself deserves scrutiny. Doubly robust scores offer a fix, grounding evaluation in something more reliable than raw Qini. For a deeper look at how rigorous logic keeps AI honest, see our piece on Z3 solvers.
Beyond DoubleML: A Practical Test of Doubly Robust Dose-Response Estimation
When DoubleML hits its limits, you need a different approach. Kennedy's doubly robust estimator offers a practical alternative for dose-response estimation. The simulations here test it against DoubleML directly, using partial pooling across 200 stores and a DiD fix to handle hidden confounders. It's a grounded, technical comparison that moves beyond theory into what actually works. For more on pushing analytical boundaries, see how Booking.com built a data platform for 400 billion daily predictions.
Stop Chasing Questions: Let a Herder Agent Prioritize Them for You
Stop chasing questions across endless sessions. A herder agent surfaces them by priority, kept current through webhooks or inexpensive Haiku polling. This approach, detailed alongside our coverage of how an orchestrator improves coding agent efficiency by 30%, transforms a reactive hunt into a managed workflow. For deeper insight into building smarter automation, see our related piece on "Build Smarter MCP Servers by Keeping Orchestration in the Host."
When Your Spreadsheet Agent Pauses for Hours Waiting on a Human
An 83-second synchronous call kept an RSS agent's connection open while it waited for a human. That's 83 seconds of a client hanging on the line. Webhooks and 202 receipts fix this: they free the client immediately while the agent works for hours if needed. It's a practical step toward agents that pause, resume, and wait patiently. For deeper coverage, see how a herder agent surfaces priority questions kept current by webhooks.
Package coding agent skills as versioned plugins for smarter repo governance
Gubi reissued the Lotus lamp, but here the innovation is packaging coding agent skills as versioned plugins for smarter repo governance. Distribute them through a marketplace with Claude Code and AWS. This approach transforms how teams manage rules, hooks, and MCP tool configs across repositories. It makes governance reproducible and shareable. For deeper context on keeping agents focused, read "Stop Chasing Questions: Let a Herder Agent Prioritize Them for You."
Build Smarter MCP Servers by Keeping Orchestration in the Host
Build smarter MCP servers by keeping orchestration in the host, not the tool. A Python SDK v2 catalogue server with two narrow tools, one resource, and one prompt shows how planning, workflow state, and authorisation belong on the host side. This is practical architecture that respects boundaries. For a broader take on agentic design, our 7-step roadmap explores tools, memory, and control loops.
Make Your Analytics Work Irreplaceable by Building Tools Teams Trust
Follow data from input to output, then turn vague requests into deterministic tools teams trust. That's the lesson from manufacturing and logistics projects, and it's how analytics professionals make their work irreplaceable. Building tools that earn trust protects your role better than any résumé. For deeper context on smart oversight, see "Smarter AI oversight wakes reviewers only when a check fails."
Smarter AI oversight wakes reviewers only when a check fails
Most AI oversight systems wake a human reviewer for every single decision, flooding them with noise until they stop paying attention. That's the real failure. Smarter oversight borrows from Kahneman's System 1 and System 2 thinking, plus standards like ODPS and ODCS, to alert reviewers only when a check actually fails. It's a more human-centered approach. For more on how open models handle probability, see our piece on models chasing streaks with fair coin flips.
Open Models Still Chase Streaks When Fair Coin Flips Hit Ten in a Row
Even after being told the coin is fair and each flip is independent, small open models still bet up to 82% on an 11th head following ten in a row. That stubborn streak bias barely budges when you repeat the instruction. It is a sharp reminder that even accessible, instruction-tuned systems carry deep statistical blind spots. For a broader look at how AI is reshaping practical workflows, our coverage of Dreamteam's AI-native CRM winning over Salesforce users offers a compelling contrast.
RAG Systems Ace Textbook Tests but Stumble on Fresh Research
RAG systems aced textbook tests, scoring 12 to 20 out of 20, but stumbled hard on a paper published this year, where scores dropped to zero out of 15. That gap reveals a real limitation: models trained to retrieve from static knowledge bases struggle with novel research. It's a wake-up call for anyone relying on them for fresh insights. For a deeper look at how agents can build smarter memory, see our related piece, "From Static Graphs to Living Memory."
From Static Graphs to Living Memory: 6 Agentic Patterns for Smarter Data
A static knowledge graph is a map. A living Context Graph is a memory that remembers decisions, user intent, and operational history. This guide explores six agentic patterns that transform that map into something smarter. For teams already monitoring quality and cost over error rates, our related piece on monitoring AI agents offers a natural next step. It is time to explore data that learns.
Measuring Quantum Model Complexity with PyTorch and PennyLane
Effective dimension gives us a grounded way to measure a quantum model's true complexity, moving beyond parameter counts. Gopi's post walks through local and global variants, Fisher estimation, and epsilon-ball sampling, all implemented in PennyLane with a time-series experiment to test stability. It's a practical, code-first look at a metric that matters more as quantum machine learning matures. For a broader take on how models interact with data over time, our piece "From Static Graphs to Living Memory" explores related ideas.
Monitor AI Agents by Quality and Cost, Not Just Error Rates
38% of AI agents showed signs of failure through quality and token alerts, while only 1% signaled through errors. That data, drawn from over 100 agents, reveals a critical insight: silent drift is the real threat, not crashes. Monitoring must start with quality, cost, and latency. For a deeper look at practical automation, our guide on *Practical Python for automating four real-world image decisions* shows how these principles apply to everyday tasks.
Practical Python for automating four real-world image decisions
Jev doesn't just look at images, he makes decisions about them. This practical walkthrough delivers four Python scripts that solve real problems: classifying fabric against reference photos, scoring product sharpness, cropping shipping labels, and spotting subtle car damage. No theory, no fluff. Each example is built for immediate use. If your workflow relies on visual judgments, this is the kind of automation that transforms how you work. For more on local decision-making, see why simple keyword search still beats AI models for agent tool selection.
Beyond Speed: What AI Still Can't Do for PhD Research
Speed alone won't fix a broken dataset. A PhD student in ML and ecology makes that clear in a new piece on why faster code, experiments, and drafts still leave data with a backstory unresolved. It offers three predictions for how labs will adapt. For practical help with real-world image decisions, our guide on automating four image tasks pairs well here.
Validate AI Output Locally with Ollama, Gemma 4, and Nimble
Gemma 4 drafts the replies, and Bespoke Labs' Nimble 9B decides if they're ready to send, need revision, or require human review. Only flagged questions get a focused retry. This isn't just automation, it's a workflow that respects judgment. If you want to see how fault detection can slip, "Testing Reveals 41% of Faults Go Undetected in Newer Python Libraries" offers a sobering companion read. Validate locally, trust the process.
Testing Reveals 41% of Faults Go Undetected in Newer Python Libraries
Testing 50 Python libraries with 2,312 planted faults found that tests in newer libraries miss 41% of them, and surfaced four real library problems, including a Windows data-loss bug and README examples that don't work as written. That's a strong signal: young codebases need more than just test coverage. For a deeper look at how evaluation gaps mislead us, see our related piece on search accuracy. The takeaway is simple, test your tests.
When Search Context Swells, Retrieval Accuracy Drops 40 Points
Adding 2.68 million distracting passages to a retrieval context drops accuracy by 40 points. That's a reproducible result from testing BM25, embeddings, and parent documents, and it exposes why author-written evals overrate search performance. Answer position matters more than most teams admit. For a deeper look at where these retrieval failures cascade into larger system breakdowns, our piece on why most agentic AI projects fail explores the pattern.
Understand How Humans and AI Differ in Handling Uncertainty
Uncertainty is a human instinct, not a spreadsheet error. Researchers asked annotators to label each MNIST and Mukhoti digit as yes, no, or unsure, generating soft labels that capture genuine hesitation. The result is a testbed that reveals how human confidence diverges from model certainty. When search context swells, retrieval accuracy drops 40 points, a reminder that context matters as much as confidence. This dataset invites us to explore a more honest measure of what a model truly knows.
Why Most Agentic AI Projects Fail Before They Start
A palace-hotel wedding week reveals why most agentic AI projects fail before they start: teams deploy assistants, copilots, agents, and orchestration without knowing which fits where. Gartner expects 40% of these projects to be cancelled. That confusion is avoidable. Our analysis clarifies the distinctions and when each tool belongs. For deeper context on small models struggling under pushback, see *Three Small AI Models Falter When Told Their Answers Are Wrong*.