<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Scikit-Learn on Sergio A. Mora Pardo | AI/ML Technical Lead</title><link>https://sergiomorapardo.github.io/tags/scikit-learn/</link><description>Recent content in Scikit-Learn on Sergio A. Mora Pardo | AI/ML Technical Lead</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 06 Sep 2026 00:00:00 -0500</lastBuildDate><atom:link href="https://sergiomorapardo.github.io/tags/scikit-learn/index.xml" rel="self" type="application/rss+xml"/><item><title>Cross-validation that matches the data</title><link>https://sergiomorapardo.github.io/writing/cross-validation-that-matches-the-data/</link><pubDate>Sun, 06 Sep 2026 00:00:00 -0500</pubDate><guid>https://sergiomorapardo.github.io/writing/cross-validation-that-matches-the-data/</guid><description>&lt;p&gt;Cross-validation is often introduced as a setting: choose five folds and call &lt;code&gt;cross_val_score&lt;/code&gt;. The more important decision happens earlier. A validation design is a claim about which observations may legitimately stand in for the future.&lt;/p&gt;&#10;&lt;p&gt;The source notebook builds that claim progressively, from repeated hold-out experiments to grouped, temporal, stratified, and nested validation. This note condenses the workflow into the decisions that make an evaluation credible.&lt;/p&gt;&#10;&lt;h2 id="start-with-the-source-of-dependence"&gt;Start with the source of dependence&lt;/h2&gt;&#10;&lt;p&gt;A random split assumes observations can be exchanged without changing the problem. That assumption breaks when examples share a patient, customer, device, document, or time period. The split strategy must preserve the boundary that will exist when the model is used.&lt;/p&gt;</description></item></channel></rss>