Find and drop columns that give away the answer, IDs that identify rows, and repeated records.
A leaking column holds information the model will not have when it predicts for real. It makes the baseline and every experiment score better than they will on new rows. Autofit cannot detect every leak from the data. You know when each column is recorded.
What Claude checks
Before the session starts, Claude looks for three kinds of risk and asks you about each one it finds:
Columns recorded after the outcome. A refund date, a closing balance, a status, a return reason. Claude asks: “Is refund_date known when the order is placed?”
ID columns. A column unique or nearly unique per row. A model can learn to recognize a row by its ID.
Repeated records. The same record twice, sometimes with a different timestamp. One copy can train while the other is scored. Claude says how many rows repeat and offers a copy that keeps the first row of each.
Check a suspect column yourself
Compare the target rate across the column’s values. A column that splits the target almost perfectly is either a strong signal or a leak, and only you can tell which.For example, in a loan table with a default target:
Column
Finding
Verdict
recoveries
Every loan with recoveries above 0 defaulted.
Leak: recoveries happen after a default.
total_rec_prncp
Loans that repaid 99% or more of principal never defaulted.
Leak: recorded at the end of the loan.
grade
Default rate rises from grade A to G.
Signal: set when the loan is issued.
Drop a column
Tell Claude to drop it. From a shell, pass --drop, once per column:
A dropped column is removed before anything runs, including the baseline.
Mentioning a leaking column in the context is not enough. The baseline runs before the agent reads anything, so only dropping the column keeps it out.
For a column in a lookup table, use a copy of that table without the column. --drop reaches the main table only. See Multi-table data.
When the agent finds an issue
During the session, the agent can flag a data issue: a repeated record, an identifying ID or a leaking column it missed at setup. Its experiment description then starts with Data issue:.Autofit pauses the session at the flag. Nothing runs until you decide:
Start a new session on data without the issue. You get an honest baseline to compare with. This is usually the better choice.
Resume this session. Its scores stay as they are, and the final model can include experiments scored with the issue.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Prior Labs","colors":{"primary":"#101075","light":"#ffffff","dark":"#1e293b"},"logo":{"light":"https://mintcdn.com/priorlabs/t197PY0EpQCr-YHY/logo/light.svg?fit=max\u0026auto=format\u0026n=t197PY0EpQCr-YHY\u0026q=85\u0026s=33643e275cfc08c99769e1719c4f53c2","dark":"https://mintcdn.com/priorlabs/t197PY0EpQCr-YHY/logo/light.svg?fit=max\u0026auto=format\u0026n=t197PY0EpQCr-YHY\u0026q=85\u0026s=33643e275cfc08c99769e1719c4f53c2"},"favicon":"https://mintcdn.com/priorlabs/SdCir_vgKw3mGacd/favicon.png?fit=max\u0026auto=format\u0026n=SdCir_vgKw3mGacd\u0026q=85\u0026s=88fa647a00e90147d312725e3354c544","appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"https://priorlabs.ai/contact?utm_source=docs","label":"Talk to Sales"}],"primary":{"type":"button","label":"Try TabPFN","href":"https://platform.priorlabs.ai/playground"}},"footer":{"socials":{"github":"https://github.com/priorlabs","linkedin":"https://www.linkedin.com/company/prior-labs"}},"fonts":{"heading":{"family":"Inter","weight":700},"body":{"family":"DM Sans","weight":400}},"integrations":{"ga4":{"measurementId":"G-9VZ68NQKPM"},"posthog":{"apiKey":"phc_GN5N25uDvJqsqnxmoM6Akr2CuyFIZsdu5ZokAXsPa1N","apiHost":"https://eu.i.posthog.com","sessionRecording":true}},"banner":{"content":"New course with Andrew Ng: **Tabular Foundation Models for Data Science Agents**. [Enroll now →](https://bit.ly/4sQZVAA)","dismissible":true},"interaction":{"drilldown":false},"markdown":{"instructions":["TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count and checkpoint/API limits.","For large datasets, use per-estimator subsampling, e.g. inference_config={\"SUBSAMPLE_SAMPLES\": 100_000}, in TabPFNClassifier or TabPFNRegressor from tabpfn or tabpfn_client.","Pass raw pandas DataFrames to fit and predict. Categorical strings/categories, raw text, and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed."]},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/priorlabs/tabpfn"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/VJRuU3bSxt"},{"anchor":"Colab Demo","icon":"book","href":"https://colab.research.google.com/github/PriorLabs/TabPFN/blob/main/examples/notebooks/TabPFN_Demo_Local.ipynb"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"/changelog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"priorlabs","hasAudioNarration":false,"actualSubdomain":"priorlabs","customDomains":["docs.priorlabs.ai"],"gitSource":{"type":"github","owner":"priorlabs","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c17c9ffae5051c4052ab"},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b1170aa7fabb0791e9de934","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"API reference","count":86},{"language":"default","tag":"Documentation","count":57},{"language":"default","tag":"Cookbook","count":31},{"language":"default","tag":"All Cookbooks","count":31},{"language":"default","tag":"Capabilities","count":27},{"language":"default","tag":"tabpfn-extensions","count":26},{"language":"default","tag":"tabpfn","count":25},{"language":"default","tag":"tabpfn-client","count":17},{"language":"default","tag":"TabPFNRegressor","count":10},{"language":"default","tag":"REST API","count":9}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".cookbook-filter-bar{display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem;margin:1.5rem 0 2rem}.cookbook-filter-label{font-size:0.875rem;font-weight:600;color:#334155}.cookbook-tag-filters{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:center}.cookbook-tag-filter-btn,.cookbook-tag-filter-clear{display:inline-flex;align-items:center;padding:0.375rem 0.75rem;border-radius:9999px;border:1px solid #cbd5e1;background:#ffffff;color:#334155;font-size:0.8125rem;font-weight:600;line-height:1.25rem;cursor:pointer;transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease}.cookbook-tag-filter-btn:hover,.cookbook-tag-filter-clear:hover{border-color:#101075;color:#101075}.cookbook-tag-filter-btn.is-active{background:#101075;border-color:#101075;color:#ffffff}.cookbook-tag-filter-clear{border-style:dashed}.cookbook-grid{display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:1rem}.cookbook-tile{height:100%;grid-column:span 2}.cookbook-tile>a,.cookbook-tile>div{height:100%}.cookbook-grid[data-featured-count=\"1\"] .cookbook-tile.is-featured{grid-column:span 6}.cookbook-grid[data-featured-count=\"2\"] .cookbook-tile.is-featured{grid-column:span 3}.cookbook-grid[data-featured-count=\"3\"] .cookbook-tile.is-featured{grid-column:span 2}@media (max-width: 1024px){.cookbook-grid{grid-template-columns:repeat(4, minmax(0, 1fr))}.cookbook-grid[data-featured-count=\"1\"] .cookbook-tile.is-featured{grid-column:span 4}.cookbook-grid[data-featured-count=\"2\"] .cookbook-tile.is-featured,.cookbook-grid[data-featured-count=\"3\"] .cookbook-tile.is-featured{grid-column:span 2}}@media (max-width: 640px){.cookbook-grid{grid-template-columns:minmax(0, 1fr)}.cookbook-tile,.cookbook-grid[data-featured-count] .cookbook-tile.is-featured{grid-column:1 / -1}}.cookbook-tile.is-featured>a,.cookbook-tile.is-featured>div{position:relative;border:2px solid #101075;box-shadow:0 8px 24px -12px rgba(16, 16, 117, 0.45);background-image:linear-gradient(\n 135deg,\n rgba(16, 16, 117, 0.06) 0%,\n rgba(16, 16, 117, 0) 55%\n )}.cookbook-tile.is-featured>a:hover{border-color:#101075;box-shadow:0 12px 32px -12px rgba(16, 16, 117, 0.6)}.cookbook-featured-badge{display:inline-flex;align-items:center;gap:0.25rem;margin:0 0 0.75rem;padding:0.125rem 0.625rem;border-radius:9999px;background:#101075;color:#ffffff;font-size:0.75rem;font-weight:700;letter-spacing:0.02em;line-height:1.25rem;text-transform:uppercase}.cookbook-tile.is-featured .cookbook-tile-description{font-size:1rem}.cookbook-tile-tags{display:flex;flex-wrap:wrap;gap:0.375rem;margin:0 0 0.75rem}.cookbook-tag-pill{display:inline-flex;align-items:center;padding:0.125rem 0.5rem;border-radius:9999px;background:#eef2ff;color:#101075;font-size:0.75rem;font-weight:600;line-height:1.25rem}.cookbook-tile-description{margin:0;color:#475569;font-size:0.9375rem;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis}.cookbook-tile.is-featured .cookbook-tile-description{-webkit-line-clamp:2;line-clamp:2}.cookbook-meta{display:flex;flex-wrap:wrap;align-items:center;gap:0.75rem 1rem;margin:0 0 1.75rem}.cookbook-authors{margin:0;min-width:0}.cookbook-colab{display:flex;justify-content:flex-end;align-items:center;margin:0 0 0 auto}.cookbook-colab-button{display:inline-flex!important;align-items:center;gap:0.5rem;padding:0.5rem 1rem!important;font-family:Inter, ui-sans-serif, system-ui, sans-serif!important;font-size:0.875rem!important;font-weight:500!important;line-height:1.25!important;color:#101075!important;background-color:#ffffff!important;border:1px solid #101075!important;border-radius:0.75rem!important;text-decoration:none!important;box-shadow:none!important;transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,\n transform 0.15s ease;cursor:pointer}.cookbook-colab-button:hover{background-color:#f3f3fa!important;border-color:#2a2a99!important;color:#2a2a99!important;transform:translateY(-1px)}.cookbook-colab-icon{width:1.125rem;height:1.125rem;flex-shrink:0;display:block}.cookbook-colab-label{white-space:nowrap}.cookbook-author-bar{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.625rem;padding:0.625rem 0.875rem;border:1px solid #e2e8f0;border-radius:9999px;background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);box-shadow:0 1px 2px rgba(15, 23, 42, 0.04)}.cookbook-author-by{font-size:0.8125rem;font-weight:500;color:#64748b!important;letter-spacing:0.01em;flex-shrink:0}.cookbook-author-list{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.5rem 0.75rem}.cookbook-author-entry{display:inline-flex;align-items:center;gap:0.5rem}.cookbook-author-separator{color:#cbd5e1!important;font-size:1rem;line-height:1;user-select:none}.cookbook-author-name{font-size:0.9375rem;font-weight:600;color:#101075!important;white-space:nowrap}.cookbook-author-links{display:inline-flex;align-items:center;gap:0.375rem}.cookbook-author-icon-link{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:9999px;color:#475569!important;background:#ffffff;border:1px solid #e2e8f0;text-decoration:none;transition:color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease}.cookbook-author-icon-link:hover{color:#101075!important;border-color:#c7d2fe;background:#eef2ff;transform:translateY(-1px)}.cookbook-author-icon{width:0.95rem;height:0.95rem;display:block}.compare-benchmark-table{overflow-x:auto;border:1px solid #dbe4f0;border-radius:0.75rem;background:#ffffff}.compare-task-switch-controls{display:inline-flex;gap:0.25rem;margin:0 0 1rem;padding:0.25rem;border:1px solid #dbe4f0;border-radius:0.5rem;background:#f8fafc}.compare-task-switch-button{padding:0.45rem 0.8rem;border:0;border-radius:0.35rem;background:transparent;color:#64748b;font-size:0.8125rem;font-weight:600;cursor:pointer}.compare-task-switch-button.is-active{background:#101075;color:#ffffff}.compare-task-panel[aria-hidden=\"true\"]{display:none}.compare-task-panel[aria-hidden=\"false\"]{display:block}.compare-benchmark-table table{display:table!important;width:100%!important;min-width:680px;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed!important}.compare-benchmark-table th:first-child,.compare-benchmark-table td:first-child{width:34%}.compare-benchmark-table th:not(:first-child),.compare-benchmark-table td:not(:first-child){width:13.2%}.compare-benchmark-table-performance table{min-width:0}.compare-benchmark-table-performance th:first-child,.compare-benchmark-table-performance td:first-child{width:50%}.compare-benchmark-table-performance th:not(:first-child),.compare-benchmark-table-performance td:not(:first-child){width:25%}.compare-benchmark-table-speed table{min-width:0}.compare-benchmark-table-speed th:first-child,.compare-benchmark-table-speed td:first-child{width:40%}.compare-benchmark-table-speed th:not(:first-child),.compare-benchmark-table-speed td:not(:first-child){width:20%}.compare-benchmark-table th,.compare-benchmark-table td{padding:0.75rem 1rem;border-bottom:1px solid #e8eef5;white-space:nowrap;text-align:right}.compare-benchmark-table th:first-child,.compare-benchmark-table td:first-child{text-align:left}.compare-benchmark-table th{color:#64748b;background:#f8fafc;font-size:0.75rem;font-weight:700}.compare-benchmark-table td{color:#475569;font-size:0.875rem}.benchmark-config-info{display:inline-block;position:relative;text-align:left;white-space:normal}.benchmark-config-trigger{padding:0;border:0;background:transparent;color:#12213a;cursor:pointer;text-decoration:underline dotted;text-underline-offset:0.2em}.benchmark-config-trigger:focus-visible{outline:2px solid #2855d9;outline-offset:2px}.benchmark-config-popover{position:fixed;z-index:1000;padding:0.75rem;border:1px solid #cbd5e1;border-radius:0.5rem;background:#ffffff;box-shadow:0 8px 24px rgb(15 23 42 / 18%);color:#334155;font-size:0.8125rem;line-height:1.5;text-align:left;white-space:normal}.benchmark-config-popover::before{position:absolute;top:-0.35rem;left:1rem;width:0.6rem;height:0.6rem;border-top:1px solid #cbd5e1;border-left:1px solid #cbd5e1;background:#ffffff;content:\"\";transform:rotate(45deg)}.benchmark-config-popover.is-above::before{top:auto;bottom:-0.35rem;border:0;border-right:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1}.compare-data-types-table .data-type-supported,.compare-data-types-table .data-type-engineering{font-weight:600}.compare-data-types-table .data-type-supported{color:#101075}.compare-data-types-table .data-type-processed{color:#2855d9}.compare-data-types-table .data-type-engineering{color:#a21caf}.compare-benchmark-table tr:last-child td{border-bottom:0}.compare-benchmark-table .compare-table-row-tabpfn td{background:#eef4ff}.compare-benchmark-table .compare-table-row-tabpfn td:first-child{border-left:3px solid #2855d9}.compare-benchmark-table .compare-table-row-xgboost td{background:#fff5e9}.compare-benchmark-table .compare-table-row-xgboost td:first-child{border-left:3px solid #c85c0a}.compare-benchmark-table .compare-table-best{color:#12213a;font-weight:800}.compare-benchmark-note{margin:1rem 0 2rem;color:#64748b;font-size:0.8125rem;line-height:1.55}.compare-choice-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1rem;margin:1.5rem 0 2.5rem}.compare-choice{padding:1.25rem;border:1px solid #dbe4f0;border-radius:0.5rem;background:#f8fbff}.compare-choice-competitor{border-color:#eadfce;background:#fdfaf5}.compare-choice h3{margin:0 0 0.75rem;font-size:0.95rem}.compare-choice ul{margin:0;padding-left:1.1rem;color:#475569;font-size:0.875rem}.compare-choice li{margin:0.5rem 0}@media (max-width: 700px){.compare-choice-grid{grid-template-columns:minmax(0, 1fr)}}.sidebar-group-title{font-size:0.5rem!important;font-weight:600!important}[data-testid=\"sidebar-group-title\"]{font-size:0.5rem!important;font-weight:600!important}.sidebar .group-title{font-size:0.5rem!important;font-weight:600!important}.sidebar-group-title{margin-bottom:0.5rem!important;margin-top:1rem!important}.table-container{width:auto!important;overflow-x:auto!important}.table-container table{width:auto!important;table-layout:auto!important}.table-container table th:first-child,.table-container table td:first-child{text-align:left!important;white-space:nowrap!important;padding-right:1rem!important}.table-container table th:last-child,.table-container table td:last-child{text-align:left!important}.nav-logo{width:27%!important;height:auto}h1,h2,h3,h4,h5,h6{color:#101075!important}.heading-1,.heading-2,.heading-3,.heading-4,.heading-5,.heading-6{color:#101075!important}[data-heading]{color:#101075!important}.heading{color:#101075!important}.main-content,.content,.page-content{background-color:#f8f8f9!important}body,p,div,a,li,td,th{color:#0c0c0c!important}strong,b{font-weight:700!important;color:#0c0c0c!important}.paragraph{color:#0c0c0c!important}a{color:#0c0c0c!important}.sidebar-group-title{font-size:0.5rem!important;font-weight:600!important}[data-testid=\"sidebar-group-title\"]{font-size:0.5rem!important;font-weight:600!important}.sidebar .group-title{font-size:0.5rem!important;font-weight:600!important}.sidebar-group-title{margin-bottom:0.5rem!important;margin-top:1rem!important}.table-container-dc3e57e5{width:100%!important;overflow-x:auto!important}.table-container-dc3e57e5 table{width:100%!important;table-layout:fixed!important}.table-container-dc3e57e5 table th:first-child,.table-container-dc3e57e5 table td:first-child{width:50%!important;text-align:left!important;white-space:nowrap!important;padding-right:1rem!important}.table-container-dc3e57e5 table th:nth-child(2),.table-container-dc3e57e5 table td:nth-child(2){width:50%!important;text-align:left!important}.table-container-nowrap{width:100%!important;overflow-x:auto!important}.table-container-nowrap table{width:auto!important;table-layout:auto!important}.table-container-nowrap table th,.table-container-nowrap table td{white-space:nowrap!important;text-align:left!important;padding-right:1rem!important}.table-container-nowrap table th:first-child,.table-container-nowrap table td:first-child{width:auto!important;padding-right:1.5rem!important}.metering-operations th,.metering-operations td{padding:0.75rem 1rem}.metering-operations thead th{font-weight:700}#banner{background:linear-gradient(90deg, #101075 0%, #1e3a8a 60%, #2563eb 100%)!important;font-size:0.875rem;letter-spacing:0.01em}#banner,#banner *{color:#ffffff!important}#banner strong{font-weight:700}#banner a{color:#ffffff!important;font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255, 255, 255, 0.6);transition:text-decoration-color 0.15s ease}#banner a:hover{text-decoration-color:#ffffff}.dlai-course{display:grid;grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr);gap:1.5rem;margin:2rem 0;padding:1.5rem;background:#ffffff;border:2px solid #f65b66;border-radius:1rem}.dlai-course-media{position:relative}.dlai-course-video{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0.75rem}.dlai-course-logo{display:block;flex-shrink:0;height:1.875rem;width:auto;margin:0}.dlai-course-heading{display:flex;align-items:center;flex-wrap:wrap;gap:0 0.375rem}.dlai-course-eyebrow{margin:0;font-size:0.75rem;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;opacity:0.85}.dlai-course-title{margin:0.25rem 0 1rem;font-size:1.25rem;font-weight:700;line-height:1.3}.dlai-course-description{margin:0;font-size:0.9rem;line-height:1.6}.dlai-course-cta{display:inline-block;margin-top:1rem;padding:0.5rem 1rem;background:#f65b66;border-radius:0.75rem;color:#ffffff!important;font-size:0.875rem;font-weight:600;text-decoration:none!important;transition:background-color 0.15s ease}.dlai-course-cta:hover{background:#e0434f}@media (max-width: 768px){.dlai-course{grid-template-columns:1fr}.dlai-course-media{aspect-ratio:16 / 9}}#navbar a[href=\"https://priorlabs.ai/contact?utm_source=docs\"]{display:inline-flex!important;align-items:center;gap:0.625rem;padding:0.5rem 1rem!important;font-size:0.875rem!important;font-weight:500!important;color:#101075!important;background-color:#ffffff!important;border:1px solid #101075!important;border-radius:0.75rem!important;text-decoration:none!important;transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;cursor:pointer}#navbar a[href=\"https://priorlabs.ai/contact?utm_source=docs\"]::after{content:\"\";display:inline-block;width:6px;height:6px;border-right:1.5px solid #101075;border-bottom:1.5px solid #101075;transform:rotate(-45deg);margin-top:-1px;flex-shrink:0;transition:border-color 0.2s ease}#navbar a[href=\"https://priorlabs.ai/contact?utm_source=docs\"]:hover{background-color:#f3f3fa!important;border-color:#2a2a99!important;color:#2a2a99!important}#navbar a[href=\"https://priorlabs.ai/contact?utm_source=docs\"]:hover::after{border-right-color:#2a2a99;border-bottom-color:#2a2a99}.research-search-bar{display:flex;flex-direction:column;gap:0.5rem;margin:1.5rem 0 1rem}.research-search-label{font-size:0.875rem;font-weight:600;color:#334155}.research-search-input-wrap{position:relative;display:flex;align-items:center;width:100%;max-width:32rem}.research-search-icon{position:absolute;left:0.75rem;width:1.125rem;height:1.125rem;color:#94a3b8;pointer-events:none}.research-search-input{width:100%;padding:0.625rem 0.75rem 0.625rem 2.375rem;border:1px solid #cbd5e1;border-radius:0.75rem;background:#ffffff;color:#0f172a;font-size:0.9375rem;line-height:1.375rem;transition:border-color 0.15s ease, box-shadow 0.15s ease}.research-search-input::placeholder{color:#94a3b8}.research-search-input:focus{outline:none;border-color:#101075;box-shadow:0 0 0 3px rgba(16, 16, 117, 0.12)}.research-filter-bar{display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem;margin:1.5rem 0 1rem}.research-filter-label{font-size:0.875rem;font-weight:600;color:#334155}.research-tag-filters{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:center}.research-tag-filter-btn,.research-tag-filter-clear{display:inline-flex;align-items:center;padding:0.375rem 0.75rem;border-radius:9999px;border:1px solid #cbd5e1;background:#ffffff;color:#334155;font-size:0.8125rem;font-weight:600;line-height:1.25rem;cursor:pointer;transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease}.research-tag-filter-btn:hover,.research-tag-filter-clear:hover{border-color:#101075;color:#101075}.research-tag-filter-btn.is-active{background:#101075;border-color:#101075;color:#ffffff}.research-tag-filter-clear{border-style:dashed}.research-count{font-size:0.8125rem;font-weight:500;color:#64748b;margin:0 0 1rem}.research-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1rem}@media (max-width: 900px){.research-grid{grid-template-columns:minmax(0, 1fr)}}.research-tile{display:flex!important;flex-direction:column;gap:0.75rem;padding:1.25rem 1.25rem 1rem;border:1px solid #e2e8f0;border-radius:0.75rem;background:#ffffff;color:inherit!important;text-decoration:none!important;transition:border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;height:100%}.research-tile.is-hidden{display:none!important}.research-tile:hover{border-color:#101075;box-shadow:0 6px 20px rgba(16, 16, 117, 0.08);transform:translateY(-1px)}.research-tile-cta{background:linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);border-color:#c7d2fe;border-style:dashed}.research-tile-cta:hover{border-style:solid}.research-tile-cta .research-tile-meta{color:#101075;font-weight:600;text-transform:none;letter-spacing:0;font-size:0.8125rem}.research-tile-header{display:flex;flex-wrap:wrap;gap:0.375rem}.research-tag-pill{display:inline-flex;align-items:center;padding:0.125rem 0.5rem;border-radius:9999px;background:#eef2ff;color:#101075;font-size:0.75rem;font-weight:600;line-height:1.25rem}.research-tile-title{margin:0;font-size:1rem;font-weight:600;line-height:1.35;color:#0f172a!important}.research-tile-description{margin:0;color:#475569;font-size:0.9375rem;line-height:1.55;flex-grow:1}.research-tile-footer{display:flex;flex-direction:column;gap:0.25rem;margin-top:0.25rem;padding-top:0.75rem;border-top:1px solid #f1f5f9;font-size:0.8125rem;color:#64748b}.research-tile-authors{font-weight:500;color:#334155}.research-tile-meta{color:#94a3b8;font-size:0.75rem;text-transform:uppercase;letter-spacing:0.03em}.research-pagination{display:none;align-items:center;justify-content:center;gap:1rem;margin:1.5rem 0 0;width:100%;clear:both;grid-column:1 / -1}.research-pagination.is-visible{display:flex}.research-pagination-btn{display:inline-flex;align-items:center;justify-content:center;min-width:6rem;padding:0.5rem 0.875rem;border:1px solid #cbd5e1;border-radius:0.75rem;background:#ffffff;color:#334155;font-size:0.875rem;font-weight:600;line-height:1.25rem;cursor:pointer;transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease}.research-pagination-btn:hover:not(:disabled){border-color:#101075;color:#101075}.research-pagination-btn:disabled{cursor:not-allowed;opacity:0.45}.research-pagination-status{font-size:0.875rem;font-weight:600;color:#475569}.python-reference-table table{width:100%!important;min-width:640px;table-layout:fixed!important}.python-reference-table th,.python-reference-table td{white-space:normal!important;overflow-wrap:anywhere;vertical-align:top}.python-reference-table th:nth-child(1){width:20%}.python-reference-table th:nth-child(2){width:20%}.python-reference-table th:nth-child(3){width:16%}.python-reference-table th:nth-child(4){width:44%}.python-reference-table code{white-space:normal;overflow-wrap:anywhere}.python-reference-table code.python-reference-parameter{overflow-wrap:normal;word-break:normal}.python-reference-table [id]{scroll-margin-top:180px}.python-reference-returns table{min-width:0}.python-reference-returns th:nth-child(1){width:32%}.python-reference-returns th:nth-child(2){width:68%}body:has(.python-reference-table) #pagination{gap:1rem}body:has(.python-reference-table) #pagination>a{min-width:0;max-width:48%}body:has(.python-reference-table) #pagination>a span{overflow-wrap:anywhere}body:has(.python-reference-table) #pagination>a svg{flex-shrink:0}.python-reference-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:0.75rem 1rem;margin:2.5rem 0 1rem}.python-reference-heading h2{margin:0!important;min-width:0}.python-reference-heading h2 code{font-size:0.85em;white-space:normal;overflow-wrap:anywhere}.python-reference-source{display:inline-flex;align-items:center;gap:0.375rem;flex-shrink:0;padding:0.25rem 0.5rem;border:1px solid color-mix(in srgb, currentColor 20%, transparent);border-radius:0.375rem;color:inherit!important;font-size:0.75rem;line-height:1.25rem;text-decoration:none!important}.python-reference-source:hover{background:color-mix(in srgb, currentColor 6%, transparent)}.python-reference-type a{font:inherit;padding:0;border-radius:0;background:transparent}li[data-title=\"Autofit\"][data-group-tag]>button{font-weight:600;color:rgb(var(--gray-900));background:transparent!important;text-shadow:none!important;gap:0.625rem}li[data-title=\"Autofit\"][data-group-tag]>button>div:first-child svg{width:0.875rem;height:0.875rem;background-color:currentColor}li[data-title=\"Autofit\"][data-group-tag]>button>div:nth-child(2)>span:first-child{color:rgb(var(--primary));font-weight:700}li[data-title=\"Autofit\"][data-group-tag]>button>div:last-child{display:none}li[data-title=\"Autofit\"][data-group-tag]>button>div:nth-child(2)::after{content:\"→\";color:rgb(var(--primary));font-weight:700;transition:transform 0.15s ease}li[data-title=\"Autofit\"][data-group-tag]>button:hover>div:nth-child(2)::after{transform:translateX(2px)}.dark li[data-title=\"Autofit\"][data-group-tag]>button{color:rgb(var(--gray-200))}.dark li[data-title=\"Autofit\"][data-group-tag]>button>div:nth-child(2)>span:first-child,.dark li[data-title=\"Autofit\"][data-group-tag]>button>div:nth-child(2)::after{color:rgb(var(--primary-light))}.aft{--aft-fg: #f1eff4;--aft-soft: #d7d4dc;--aft-muted: #b0b0be;--aft-rule: #494654;--aft-accent: #b3a6ff;--aft-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;max-width:480px;margin:1.5rem auto;overflow:hidden;border:1px solid var(--aft-rule);border-radius:8px;background:#29272f;color:var(--aft-fg)!important;font:400 14px/20px var(--aft-mono);font-variant-numeric:tabular-nums;text-align:left}:where(.aft) :is(div,p,span,strong){color:inherit!important}.aft p{margin:0!important;font:inherit}.aft [hidden]{display:none!important}.aft-chrome,.aft-footer,.aft-dataset,.aft-status,.aft-table-header,.aft-num,.aft-score,.aft-validation,.aft-small{font-size:12px}.aft-chrome{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:8px 20px;border-bottom:1px solid var(--aft-rule);color:var(--aft-muted)!important}.aft-chrome::after{content:\"\";flex-shrink:0;width:40px}.aft-dots{display:flex;flex-shrink:0;gap:5px;transform:translateX(-8px)}.aft-dots span{width:10px;height:10px;border:1px solid var(--aft-muted);border-radius:999px}.aft-sep{margin-inline:8px;color:var(--aft-muted)!important}.aft-body{position:relative;padding:20px;overflow:hidden}.aft[data-playing] .aft-body{height:22rem}.aft-request,.aft-reply{display:grid;grid-template-columns:12px minmax(0, 1fr);gap:8px}.aft-prompt{color:var(--aft-fg)!important}.aft-dataset{margin-top:8px;padding-left:20px;color:var(--aft-muted)!important;overflow-wrap:anywhere}.aft-reply{min-height:3em;margin-top:20px}.aft .aft-reply p{color:var(--aft-soft)!important}.aft-reply-mark{color:var(--aft-accent)!important}.aft-cursor{display:inline-block;width:0.45em;height:1em;margin-left:2px;vertical-align:-0.12em;background:currentColor;animation:aft-blink 0.7s step-end infinite}.aft-run{animation:aft-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both}.aft-run-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:20px}.aft-run-header>:first-child{color:var(--aft-accent)!important;font-weight:600}.aft-status{display:inline-flex;align-items:center;gap:8px;color:var(--aft-muted)!important}.aft-status[data-complete=\"true\"]{color:var(--aft-accent)!important}.aft-spinner{display:inline-block;width:10px;height:10px;border:1px solid currentColor;border-right-color:transparent;border-radius:999px;animation:aft-spin 1s linear infinite}.aft-progress{height:2px;margin-top:8px;overflow:hidden;background:var(--aft-rule)}.aft-progress span{display:block;height:100%;background:var(--aft-accent);transform-origin:0 center;transition:transform 0.35s cubic-bezier(0.22, 1, 0.36, 1)}.aft-table-header{display:flex;justify-content:space-between;gap:8px;margin:20px 0 8px;color:var(--aft-muted)!important}.aft-experiment{display:grid;grid-template-columns:18px minmax(0, 1fr) 52px;align-items:center;gap:8px;min-height:32px;margin-inline:-6px;padding:4px 6px}.aft-num{color:var(--aft-muted)!important}.aft-name{overflow-wrap:anywhere}.aft-score{display:flex;align-items:center;justify-content:flex-end}.aft-experiment[data-state=\"pending\"]{color:var(--aft-muted)!important}.aft-experiment[data-state=\"running\"]{color:var(--aft-accent)!important;background:color-mix(in srgb, var(--aft-accent) 8%, transparent)}.aft-experiment[data-state=\"done\"] .aft-score{animation:aft-appear 0.22s ease-out both}.aft-validation{margin-top:8px;color:var(--aft-muted)!important}.aft-result{margin-top:20px;padding-top:12px;border-top:1px solid var(--aft-rule)}.aft-ensemble{display:flex;justify-content:space-between;gap:8px;color:var(--aft-muted)!important}.aft .aft-ensemble strong{font-weight:400!important}.aft-result[data-ready=\"true\"] .aft-ensemble{color:var(--aft-accent)!important}.aft-files{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:8px;visibility:hidden}.aft-result[data-ready=\"true\"] .aft-files{visibility:visible;animation:aft-appear 0.22s ease-out both}.aft-muted{color:var(--aft-muted)!important}.aft-footer{display:flex;align-items:center;gap:8px;padding:8px 20px;border-top:1px solid var(--aft-rule);color:var(--aft-muted)!important}.aft-footer>:last-child{margin-left:auto}.aft-block{width:5px;height:12px;background:var(--aft-muted)}@keyframes aft-spin{100%{transform:rotate(360deg)}}@keyframes aft-appear{0%{opacity:0}100%{opacity:1}}@keyframes aft-blink{50%{opacity:0}}@keyframes aft-enter{0%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:translateY(0)}}@media (max-width: 479px){.aft{font-size:12px}.aft-chrome,.aft-footer{padding-inline:12px}.aft-chrome::after{display:none}.aft-body{padding:20px 12px}.aft-experiment{grid-template-columns:15px minmax(0, 1fr) 44px;gap:4px}.aft-dataset span{display:block}}@media (prefers-reduced-motion: reduce){.aft *,.aft ::before,.aft ::after{animation:none!important;transition:none!important}}.compare-workflow{display:flex;flex-direction:column;align-items:center;gap:0.5rem;margin:1.5rem 0;padding:1.5rem;border:1px solid #dbe4f0;border-radius:0.75rem;background:#f8fafc}.compare-workflow-step{width:100%;padding:1rem 1.25rem;border:1px solid #dbe4f0;border-radius:0.6rem;background:#ffffff;text-align:center}.compare-workflow-step-jev{border-left:3px solid #78869b}.compare-workflow-step-tabpfn{border-left:3px solid #101075}.compare-workflow-eyebrow{display:block;color:#64748b;font-size:0.75rem;font-weight:700;letter-spacing:0.02em;text-transform:uppercase}.compare-workflow-step h4{margin:0.35rem 0 0.25rem;color:#12213a;font-size:1rem;font-weight:700;text-align:center;justify-content:center}.compare-workflow-step p{margin:0;color:#64748b;font-size:0.875rem}.compare-workflow-arrow{color:#94a3b8;font-size:1.1rem;line-height:1}.compare-fit-table table{width:100%;table-layout:fixed}.compare-fit-table th:nth-child(1),.compare-fit-table td:nth-child(1){width:36%;font-weight:600}.compare-fit-table th:nth-child(2),.compare-fit-table td:nth-child(2){width:44%;color:#64748b}.compare-fit-table th:nth-child(3),.compare-fit-table td:nth-child(3){width:20%}.compare-fit-badge{display:inline-block;padding:0.15rem 0.6rem;border:1px solid transparent;border-radius:999px;font-size:0.8125rem;font-weight:700;line-height:1.4;white-space:nowrap}.compare-fit-tabpfn{border-color:#c7d2fe;background:#eef2ff;color:#101075}.compare-fit-jev{border-color:#e2e8f0;background:#f1f5f9;color:#475569}.dark .compare-fit-table td:nth-child(2){color:#94a3b8}.dark .compare-fit-tabpfn{border-color:#3730a3;background:rgba(99, 102, 241, 0.15);color:#c7d2fe}.dark .compare-fit-jev{border-color:#475569;background:rgba(148, 163, 184, 0.12);color:#cbd5e1}@media (max-width: 700px){.compare-fit-table table{table-layout:auto}}"}]}
{"page":{"pagePath":"autofit/frame-a-task/leakage","slug":"/autofit/frame-a-task/leakage","pageMetadata":{"title":"Leakage","description":"Find and drop columns that give away the answer, IDs that identify rows, and repeated records.","href":"/autofit/frame-a-task/leakage"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Find and drop columns that give away the answer, IDs that identify rows, and repeated records.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A leaking column holds information the model will not have when it predicts for real. It makes the baseline and every experiment score better than they will on new rows. Autofit cannot detect every leak from the data. You know when each column is recorded.`}),`\n`,_jsx(Heading,{level:`2`,id:`what-claude-checks`,children:`What Claude checks`}),`\n`,_jsx(_components.p,{children:`Before the session starts, Claude looks for three kinds of risk and asks you about each one it finds:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Columns recorded after the outcome.`}),` A refund date, a closing balance, a status, a return reason. Claude asks: “Is `,_jsx(_components.code,{children:`refund_date`}),` known when the order is placed?”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`ID columns.`}),` A column unique or nearly unique per row. A model can learn to recognize a row by its ID.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Repeated records.`}),` The same record twice, sometimes with a different timestamp. One copy can train while the other is scored. Claude says how many rows repeat and offers a copy that keeps the first row of each.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`check-a-suspect-column-yourself`,children:`Check a suspect column yourself`}),`\n`,_jsx(_components.p,{children:`Compare the target rate across the column’s values. A column that splits the target almost perfectly is either a strong signal or a leak, and only you can tell which.`}),`\n`,_jsxs(_components.p,{children:[`For example, in a loan table with a `,_jsx(_components.code,{children:`default`}),` target:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Column`}),_jsx(_components.th,{children:`Finding`}),_jsx(_components.th,{children:`Verdict`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`recoveries`})}),_jsx(_components.td,{children:`Every loan with recoveries above 0 defaulted.`}),_jsx(_components.td,{children:`Leak: recoveries happen after a default.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`total_rec_prncp`})}),_jsx(_components.td,{children:`Loans that repaid 99% or more of principal never defaulted.`}),_jsx(_components.td,{children:`Leak: recorded at the end of the loan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`grade`})}),_jsx(_components.td,{children:`Default rate rises from grade A to G.`}),_jsx(_components.td,{children:`Signal: set when the loan is issued.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`drop-a-column`,children:`Drop a column`}),`\n`,_jsxs(_components.p,{children:[`Tell Claude to drop it. From a shell, pass `,_jsx(_components.code,{children:`--drop`}),`, once per column:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`autofit`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` loans.csv`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --target`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` default`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --drop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` recoveries`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --drop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` total_rec_prncp`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`A dropped column is removed before anything runs, including the baseline.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Mentioning a leaking column in the context is not enough. The baseline runs before the agent reads anything, so only dropping the column keeps it out.`})}),`\n`,_jsxs(_components.p,{children:[`For a column in a lookup table, use a copy of that table without the column. `,_jsx(_components.code,{children:`--drop`}),` reaches the main table only. See `,_jsx(_components.a,{href:`/autofit/frame-a-task/multi-table-data`,children:`Multi-table data`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-the-agent-finds-an-issue`,children:`When the agent finds an issue`}),`\n`,_jsxs(_components.p,{children:[`During the session, the agent can flag a data issue: a repeated record, an identifying ID or a leaking column it missed at setup. Its experiment description then starts with `,_jsx(_components.code,{children:`Data issue:`}),`.`]}),`\n`,_jsx(_components.p,{children:`Autofit pauses the session at the flag. Nothing runs until you decide:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Start a new session`}),` on data without the issue. You get an honest baseline to compare with. This is usually the better choice.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Resume`}),` this session. Its scores stay as they are, and the final model can include experiments scored with the issue.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Leakage","description":"Find and drop columns that give away the answer, IDs that identify rows, and repeated records.","href":"/autofit/frame-a-task/leakage"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What Claude checks","slug":"what-claude-checks","depth":2,"children":[]},{"title":"Check a suspect column yourself","slug":"check-a-suspect-column-yourself","depth":2,"children":[]},{"title":"Drop a column","slug":"drop-a-column","depth":2,"children":[]},{"title":"When the agent finds an issue","slug":"when-the-agent-finds-an-issue","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/priorlabs/dc47dfb9d8e46daa/cookieyes.js","/_mintlify/custom/priorlabs/d8ce73b7f7a5de7b/posthog-consent.js","/_mintlify/custom/priorlabs/bd145ba8c5f78a12/cookbook-filter.js","/_mintlify/custom/priorlabs/4fffc985e576f41c/research-filter.js","/_mintlify/custom/priorlabs/09720b48fd3a180c/tabarena-switch.js","/_mintlify/custom/priorlabs/ca769327985585d7/autofit-link.js","/_mintlify/custom/priorlabs/623472f8b7e8b07f/autofit-terminal.js"],"subdomain":"priorlabs","siteName":"Prior Labs","title":"Leakage - Prior Labs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T13:37:51.234Z","originalFileLocation":"autofit/frame-a-task/leakage.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Find and drop columns that give away the answer, IDs that identify rows, and repeated records.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Prior Labs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Leakage - Prior Labs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Find and drop columns that give away the answer, IDs that identify rows, and repeated records.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Prior Labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://priorlabs.mintlify.site/_mintlify/api/og/v2?division=Frame+a+task\u0026amp;title=Leakage\u0026amp;description=Find+and+drop+columns+that+give+away+the+answer%2C+IDs+that+identify+rows%2C+and+repeated+records.\u0026amp;theme=cfa6251b37c93e730460b4c0\u0026amp;signature=aefc66ea64142e76cb2e11f0f3435e4d643c75dc07db22db0a99c315a97fe83d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Leakage - Prior Labs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Find and drop columns that give away the answer, IDs that identify rows, and repeated records.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://priorlabs.mintlify.site/_mintlify/api/og/v2?division=Frame+a+task\u0026amp;title=Leakage\u0026amp;description=Find+and+drop+columns+that+give+away+the+answer%2C+IDs+that+identify+rows%2C+and+repeated+records.\u0026amp;theme=cfa6251b37c93e730460b4c0\u0026amp;signature=aefc66ea64142e76cb2e11f0f3435e4d643c75dc07db22db0a99c315a97fe83d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Prior Labs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#101075\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/autofit/frame-a-task/leakage.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.priorlabs.ai/#organization\",\"name\":\"Prior Labs\",\"url\":\"https://docs.priorlabs.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/priorlabs/t197PY0EpQCr-YHY/logo/light.svg?fit=max\u0026auto=format\u0026n=t197PY0EpQCr-YHY\u0026q=85\u0026s=33643e275cfc08c99769e1719c4f53c2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.priorlabs.ai#website\",\"name\":\"Prior Labs\",\"url\":\"https://docs.priorlabs.ai\",\"publisher\":{\"@id\":\"https://docs.priorlabs.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage#webpage\",\"url\":\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage\",\"name\":\"Leakage\",\"description\":\"Find and drop columns that give away the answer, IDs that identify rows, and repeated records.\",\"dateModified\":\"2026-12-03T13:37:51.234Z\",\"isPartOf\":{\"@id\":\"https://docs.priorlabs.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Autofit\",\"item\":\"https://docs.priorlabs.ai/autofit/getting-started\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Frame a task\",\"item\":\"https://docs.priorlabs.ai/autofit/frame-a-task\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Leakage\",\"item\":\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage#article\",\"headline\":\"Leakage\",\"name\":\"Leakage\",\"description\":\"Find and drop columns that give away the answer, IDs that identify rows, and repeated records.\",\"url\":\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage\",\"mainEntityOfPage\":{\"@id\":\"https://docs.priorlabs.ai/autofit/frame-a-task/leakage#webpage\"},\"dateModified\":\"2026-12-03T13:37:51.234Z\",\"publisher\":{\"@id\":\"https://docs.priorlabs.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.priorlabs.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Prior Labs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Prior Labs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/autofit/frame-a-task/leakage.md","siteName":"Prior Labs","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/priorlabs/tabpfn"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/VJRuU3bSxt"},{"anchor":"Colab Demo","icon":"book","href":"https://colab.research.google.com/github/PriorLabs/TabPFN/blob/main/examples/notebooks/TabPFN_Demo_Local.ipynb"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"/changelog"}]},"tabs":[{"tab":"Documentation","icon":"book-open","groups":[{"group":"Getting Started","icon":"rocket","pages":[{"title":"Overview","href":"/overview"},{"title":"Quickstart","href":"/quickstart"},{"group":"Models","root":{"title":"Models","href":"/models"},"pages":[{"title":"Selecting Model Version","href":"/models/selecting-model-version"},{"title":"Accessing Model Weights","href":"/models/accessing-model-weights"}]},{"group":"TabPFN vs Others","pages":[{"title":"TabPFN vs XGBoost","icon":"bolt","href":"/compare/tabpfn-vs-xgboost"},{"title":"TabPFN vs Jev","icon":"scale-balanced","href":"/compare/tabpfn-vs-jev"}]},{"title":"FAQ","href":"/faq"}]},{"group":"Autofit","icon":"wand-magic-sparkles","root":{"title":"Getting Started","href":"/autofit/getting-started"},"tag":"NEW","pages":[]},{"group":"Capabilities","icon":"zap","pages":[{"title":"Thinking mode","href":"/capabilities/thinking-mode"},{"title":"Classification","href":"/capabilities/classification"},{"group":"Regression","pages":[{"title":"Regression","href":"/capabilities/regression"},{"title":"Predictive Distribution","href":"/capabilities/predictive-distribution"}]},{"title":"Text Features","href":"/capabilities/text-features"},{"title":"Time Series Forecasting","href":"/capabilities/forecasting"},{"title":"Grouped data","href":"/capabilities/grouped-data"},{"title":"Sample weights and label reliability","href":"/capabilities/sample-weights"},{"title":"Causal Inference","href":"/capabilities/causal-inference"},{"title":"Interpretability","href":"/capabilities/interpretability"},{"group":"Fast Inference","pages":[{"title":"KV cache","href":"/capabilities/kv-cache"},{"title":"Fast model (α)","href":"/capabilities/fast-checkpoint"},{"title":"Distillation","href":"/capabilities/distillation"}]},{"title":"Async jobs","href":"/capabilities/async-jobs"},{"group":"Relational α","pages":[{"title":"Relational α","href":"/capabilities/relational"},{"title":"Agent Skill α","href":"/capabilities/relational-agent-skill"}]},{"title":"Anomaly Detection","href":"/capabilities/anomaly-detection"},{"title":"Data Generation","href":"/capabilities/data-generation"},{"title":"Fine-Tuning","href":"/capabilities/fine-tuning"},{"title":"Embeddings","href":"/capabilities/embeddings"},{"title":"Many Class Classifier","href":"/capabilities/many-class"},{"title":"Benchmarking TabPFN","href":"/benchmarking"},{"group":"Improving Performance","pages":[{"title":"Improving Performance","href":"/improving-performance"},{"title":"Feature Engineering","href":"/improving-performance/feature-engineering"},{"title":"Feature Selection","href":"/improving-performance/feature-selection"},{"title":"Preprocessing","href":"/improving-performance/preprocessing"},{"title":"Model Parameters","href":"/improving-performance/model-parameters"}]}]},{"group":"Autofit","icon":"wand-magic-sparkles","tag":"NEW","pages":[{"title":"Getting Started","href":"/autofit/getting-started"},{"title":"Installation","href":"/autofit/installation"},{"group":"How it works","root":{"title":"How it works","href":"/autofit/how-it-works"},"pages":[{"title":"Locked folds","href":"/autofit/how-it-works/validation"},{"title":"Ensembling","href":"/autofit/how-it-works/ensembling"},{"title":"Post-processing","href":"/autofit/how-it-works/post-processing"}]},{"group":"Frame a task","root":{"title":"Frame a task","href":"/autofit/frame-a-task"},"pages":[{"title":"Metrics","description":"The built-in metrics, how Claude recommends one, and what each measures.","href":"/autofit/frame-a-task/metrics"},{"title":"Leakage","href":"/autofit/frame-a-task/leakage"},{"title":"Temporal data","description":"Validate on the latest period when rows are ordered in time, and keep labels from overlapping it.","href":"/autofit/frame-a-task/temporal-data"},{"title":"Grouped data","href":"/autofit/frame-a-task/grouped-data"},{"title":"Multi-table data","href":"/autofit/frame-a-task/multi-table-data"},{"title":"Custom metrics","href":"/autofit/frame-a-task/custom-metrics"},{"title":"Domain context","href":"/autofit/frame-a-task/domain-context"}]},{"title":"Steer a run","href":"/autofit/steer-a-run"},{"title":"Continue a session","href":"/autofit/continue-a-session"},{"title":"Use the result","href":"/autofit/use-the-result"},{"title":"Read the report","href":"/autofit/read-the-report"},{"title":"Data privacy","href":"/autofit/data-privacy"},{"title":"Control token costs","href":"/autofit/control-token-costs"}]},{"group":"Using the API","icon":"cloud","pages":[{"title":"REST API quickstart","href":"/api/rest-quickstart"},{"title":"Metering","href":"/api/metering"},{"title":"Rate limits","href":"/api/rate-limits"},{"title":"Security","href":"/api/security"}]},{"group":"Agentic","icon":"robot","pages":[{"title":"Model Context Protocol","href":"/agentic/mcp"},{"title":"Setup Guide","href":"/agentic/setup-guide"},{"group":"Tutorials","pages":[{"title":"Databricks","href":"/agentic/tutorials/databricks"},{"title":"n8n","href":"/agentic/tutorials/n8n"}]}]},{"group":"Integrations","icon":"cloud","pages":[{"title":"Microsoft Foundry","href":"/integrations/foundry"},{"title":"Amazon SageMaker","href":"/integrations/sagemaker"}]},{"group":"Troubleshooting","icon":"wrench","pages":[{"title":"OOM (Out of Memory) Error","href":"/troubleshooting/OOM-errors"}]},{"group":"TabPFN in Action","icon":"bullseye","pages":[{"title":"Research Applications","href":"/tabpfn-in-action/research"}]},{"group":"Customer References","icon":"handshake","pages":[{"title":"Industrials","url":"https://priorlabs.ai/industries/industrials","href":"/customer-references/industrial"},{"title":"Healthcare","url":"https://priorlabs.ai/industries/healthcare","href":"/customer-references/healthcare"},{"title":"Energy","url":"https://priorlabs.ai/industries/energy","href":"/customer-references/energy"},{"title":"Finance","url":"https://priorlabs.ai/industries/finance","href":"/customer-references/finance"}]},{"group":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog"},{"title":"TabPFN-4","href":"/changelog/tabpfn-4"},{"title":"New Thinking mode, student \u0026 academic plans and more","href":"/changelog/november-2026"},{"title":"TabPFN-3.5","href":"/changelog/tabpfn-3.5"},{"title":"RelArena-α, KV cache in the API, performance improvements, and more","href":"/changelog/august-2026"},{"title":"TabPFN-3","href":"/changelog/tabpfn-3"}]}]},{"tab":"Cookbook","icon":"hat-chef","pages":[{"title":"Cookbook","href":"/cookbook"}]},{"tab":"API reference","icon":"code","pages":[{"title":"API reference","href":"/api-reference/overview"}]},{"tab":"Blog","icon":"newspaper","href":"https://priorlabs.ai/blog#articles"}]},"basePath":"","title":"Leakage - Prior Labs","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["10e4515597"],"chunks":["BannerMarkdown-gMqjY6PA.js","dist-Bp7AI3M8.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}