How good the forecasts are: hold out the last steps and score them
Holds out the last horizon steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.
POST
/
v1
/
evaluate-forecast
How good the forecasts are: hold out the last steps and score them
The history: one row per series and step, with the target and any other inputs.
time_column
string
required
The date or time of each step.
Example:
"date"
target
string
required
The column to forecast.
Example:
"units"
horizon
integer
required
The number of steps to forecast.
Required range: x >= 1
Example:
28
series_column
stringstring[]
The column, or the columns, that identify a series (store and item). Leave out for one series.
Example:
["store", "sku"]
frequency
string | null
The step: H, D, W, M, Q, Y, or a multiple such as 15min. Default: inferred from the history.
column_types
Column Types · object
Override the inferred type of a column: number, category, date, text, image, audio or document (a link to a file), embedding (a list of numbers), id (never read) or ignore.
Repeat the test from this many start dates, each one horizon earlier, and average the scores.
Required range: 1 <= x <= 20
Response
Successful Response
The response is of type object.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"tabSutra","colors":{"primary":"#11615F","light":"#8FD5CC","dark":"#0A2E31"},"logo":{"light":"https://mintcdn.com/tab-sutra/Z7yuOxk3t3IM0hcg/logo/light.svg?fit=max\u0026auto=format\u0026n=Z7yuOxk3t3IM0hcg\u0026q=85\u0026s=0168ecb1ceb2f25773800b4258520303","dark":"https://mintcdn.com/tab-sutra/Z7yuOxk3t3IM0hcg/logo/dark.svg?fit=max\u0026auto=format\u0026n=Z7yuOxk3t3IM0hcg\u0026q=85\u0026s=e6c470a4b5a63b1edb278d5dde37b824","href":"https://tabsutra.com"},"favicon":"https://mintcdn.com/tab-sutra/Z7yuOxk3t3IM0hcg/favicon.svg?fit=max\u0026auto=format\u0026n=Z7yuOxk3t3IM0hcg\u0026q=85\u0026s=29a31a211c5bf9948007403a96dd6e56","navbar":{"links":[{"href":"https://tabsutra.com","label":"Website"},{"href":"https://tabsutra.com/case-studies/","label":"Case studies"}],"primary":{"type":"button","label":"Request access","href":"https://tabsutra.com/deployment/#access"}},"footer":{"socials":{"website":"https://tabsutra.com","github":"https://github.com/tabsutra"}},"fonts":{"family":"Inter"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tab-sutra","hasAudioNarration":false,"actualSubdomain":"tab-sutra","customDomains":["docs.tabsutra.com"],"gitSource":{"type":"github","owner":"tabsutra","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b0845b73e1a783e5c7aeb16"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0849553e1a783e5c7b0dbb","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API reference","count":29},{"language":"default","tag":"Documentation","count":24},{"language":"default","tag":"Tables and sequences","count":10},{"language":"default","tag":"Databases","count":9},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Use cases","count":6},{"language":"default","tag":"Getting started","count":4},{"language":"default","tag":"Forecasting","count":3},{"language":"default","tag":"Reference","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"site-roles","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":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them","slug":"/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them","pageMetadata":{"title":"How good the forecasts are: hold out the last steps and score them","description":"Holds out the last `horizon` steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/evaluate-forecast","href":"/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Holds out the last \", _jsx(_components.code, {\n children: \"horizon\"\n }), \" steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.\"]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"How good the forecasts are: hold out the last steps and score them","description":"Holds out the last `horizon` steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/evaluate-forecast","href":"/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"How good the forecasts are: hold out the last steps and score them","description":"Holds out the last `horizon` steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.","requestBody":"46578763-998b-4b6d-ba40-7127effa66b5","responses":{"200":"c02c43eb-2739-478a-9e0b-49b35edd2b85","400":"d4795dd5-8756-4ecb-af27-e8dc79b79a6d","422":"ff5358b0-3534-4eee-bad4-ad39d84d8622"},"method":"post","type":"path","servers":["9f1b2a16-53da-4013-83a5-2ce32755ba43"],"security":["bedd65e8-6b1d-46aa-bad6-445a7f7bd9e3"],"path":"/v1/evaluate-forecast","baseUrlOptions":["https://api.tabsutra.com"],"title":"How good the forecasts are: hold out the last steps and score them","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"ForecastEvaluateRequest","required":["rows","time_column","target","horizon"],"properties":{"rows":{"type":"array","items":{"additionalProperties":true,"type":"object","uniqueKey":"rows.items.[INDEX]","typeLabel":"object"},"title":"Rows","description":"The history: one row per series and step, with the target and any other inputs.","isRequired":true,"uniqueKey":"rows","typeLabel":"Rows · object[]"},"time_column":{"type":"string","title":"Time Column","description":"The date or time of each step.","examples":["date"],"isRequired":true,"uniqueKey":"time_column","typeLabel":"string"},"target":{"type":"string","title":"Target","description":"The column to forecast.","examples":["units"],"isRequired":true,"uniqueKey":"target","typeLabel":"string"},"horizon":{"type":"integer","minimum":1,"title":"Horizon","description":"The number of steps to forecast.","examples":[28],"isRequired":true,"uniqueKey":"horizon","typeLabel":"integer"},"series_column":{"oneOf":[{"type":"string","title":"Series Column","description":"The column, or the columns, that identify a series (store and item). Leave out for one series.","example":["store","sku"],"uniqueKey":"series_column.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"series_column.oneOf.1.items.[INDEX]","typeLabel":"string"},"title":"Series Column","description":"The column, or the columns, that identify a series (store and item). Leave out for one series.","example":["store","sku"],"uniqueKey":"series_column.oneOf.1","typeLabel":"string[]"},{"type":"null","title":"Series Column","description":"The column, or the columns, that identify a series (store and item). Leave out for one series.","example":["store","sku"],"uniqueKey":"series_column.oneOf.2","typeLabel":"null"}],"uniqueKey":"series_column","typeLabel":"string | string[] | null"},"frequency":{"oneOf":[{"type":"string","title":"Frequency","description":"The step: H, D, W, M, Q, Y, or a multiple such as 15min. Default: inferred from the history.","uniqueKey":"frequency.oneOf.0","typeLabel":"string"},{"type":"null","title":"Frequency","description":"The step: H, D, W, M, Q, Y, or a multiple such as 15min. Default: inferred from the history.","uniqueKey":"frequency.oneOf.1","typeLabel":"null"}],"uniqueKey":"frequency","typeLabel":"string | null"},"column_types":{"additionalProperties":{"type":"string","enum":["number","category","date","text","image","audio","document","embedding","id","ignore"],"uniqueKey":"column_types.additionalProperties","typeLabel":"enum\u003cstring>"},"type":"object","title":"Column Types","description":"Override the inferred type of a column: number, category, date, text, image, audio or document (a link to a file), embedding (a list of numbers), id (never read) or ignore.","examples":[{"postcode":"category","remarks":"text","photo_url":"image"}],"uniqueKey":"column_types","typeLabel":"Column Types · object"},"windows":{"type":"integer","default":1,"minimum":1,"maximum":20,"title":"Windows","description":"Repeat the test from this many start dates, each one horizon earlier, and average the scores.","uniqueKey":"windows","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"ForecastEvaluateRequest · object"},"examples":{"Example":{"title":"Example","value":{"rows":[{}],"time_column":"date","target":"units","horizon":28,"series_column":["store","sku"],"frequency":"\u003cstring>","column_types":{"postcode":"category","remarks":"text","photo_url":"image"},"windows":1}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"c02c43eb-2739-478a-9e0b-49b35edd2b85":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"},"d4795dd5-8756-4ecb-af27-e8dc79b79a6d":{"description":"An error","content":{"application/json":{"schema":{"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"},"ff5358b0-3534-4eee-bad4-ad39d84d8622":{"description":"An error","content":{"application/json":{"schema":{"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"bedd65e8-6b1d-46aa-bad6-445a7f7bd9e3":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your API key, sent as 'Authorization: Bearer \u003ckey>'.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"9f1b2a16-53da-4013-83a5-2ce32755ba43":{"url":"https://api.tabsutra.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your API key, sent as 'Authorization: Bearer \u003ckey>'.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your API key, sent as 'Authorization: Bearer \u003ckey>'.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"tab-sutra","siteName":"tabSutra","title":"How good the forecasts are: hold out the last steps and score them - tabSutra","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-26T14:59:36.838Z","originalFileLocation":"api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"Holds out the last horizon steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.\">\u003cmeta data-mint-head name=\"application-name\" content=\"tabSutra\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_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/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tab-sutra/UeyHDcYJZWkl6BEi/_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/tab-sutra/UeyHDcYJZWkl6BEi/_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/tab-sutra/UeyHDcYJZWkl6BEi/_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/tab-sutra/UeyHDcYJZWkl6BEi/_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/tab-sutra/UeyHDcYJZWkl6BEi/_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/tab-sutra/UeyHDcYJZWkl6BEi/_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/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"How good the forecasts are: hold out the last steps and score them - tabSutra\">\u003cmeta data-mint-head property=\"og:description\" content=\"Holds out the last horizon steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"tabSutra\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tab-sutra.mintlify.site/_mintlify/api/og/v2?division=Forecasting\u0026amp;title=How+good+the+forecasts+are%3A+hold+out+the+last+steps+and+score+them\u0026amp;description=Holds+out+the+last+%60horizon%60+steps+of+every+series%2C+forecasts+them+from+the+history+before%2C+and+scores+them+%28MASE%2C+weighted+quantile+loss%2C+MAE%2C+RMSE%2C+interval+c\u0026amp;theme=3fb2931f97df6c86807c5ccc\u0026amp;signature=75718959170e1e55d66517562a4dc90894e23c5260d595254b328acebcc821e2\">\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=\"How good the forecasts are: hold out the last steps and score them - tabSutra\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Holds out the last horizon steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tab-sutra.mintlify.site/_mintlify/api/og/v2?division=Forecasting\u0026amp;title=How+good+the+forecasts+are%3A+hold+out+the+last+steps+and+score+them\u0026amp;description=Holds+out+the+last+%60horizon%60+steps+of+every+series%2C+forecasts+them+from+the+history+before%2C+and+scores+them+%28MASE%2C+weighted+quantile+loss%2C+MAE%2C+RMSE%2C+interval+c\u0026amp;theme=3fb2931f97df6c86807c5ccc\u0026amp;signature=75718959170e1e55d66517562a4dc90894e23c5260d595254b328acebcc821e2\">\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/tab-sutra/UeyHDcYJZWkl6BEi/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"tabSutra\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#11615F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/how-good-the-forecasts-are%3A-hold-out-the-last-steps-and-score-them.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tabsutra.com/#organization\",\"name\":\"tabSutra\",\"url\":\"https://docs.tabsutra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tab-sutra/Z7yuOxk3t3IM0hcg/logo/light.svg?fit=max\u0026auto=format\u0026n=Z7yuOxk3t3IM0hcg\u0026q=85\u0026s=0168ecb1ceb2f25773800b4258520303\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tabsutra.com#website\",\"name\":\"tabSutra\",\"url\":\"https://docs.tabsutra.com\",\"publisher\":{\"@id\":\"https://docs.tabsutra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them#webpage\",\"url\":\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them\",\"name\":\"How good the forecasts are: hold out the last steps and score them\",\"description\":\"Holds out the last horizon steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.\",\"dateModified\":\"2026-11-26T14:59:36.838Z\",\"isPartOf\":{\"@id\":\"https://docs.tabsutra.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Forecasting\",\"item\":\"https://docs.tabsutra.com/api-reference/forecast-one-or-many-series\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How good the forecasts are: hold out the last steps and score them\",\"item\":\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them#apireference\",\"headline\":\"How good the forecasts are: hold out the last steps and score them\",\"name\":\"How good the forecasts are: hold out the last steps and score them\",\"description\":\"Holds out the last horizon steps of every series, forecasts them from the history before, and scores them (MASE, weighted quantile loss, MAE, RMSE, interval coverage) against a seasonal naive forecast.\",\"url\":\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tabsutra.com/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them#webpage\"},\"dateModified\":\"2026-11-26T14:59:36.838Z\",\"publisher\":{\"@id\":\"https://docs.tabsutra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tabsutra.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"tabSutra\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"tabSutra\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/how-good-the-forecasts-are%3A-hold-out-the-last-steps-and-score-them.md","siteName":"tabSutra","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Overview","href":"/api-reference/introduction"}]},{"group":"Service","pages":[{"title":"Is the server up, and is a model loaded","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /health","href":"/api-reference/is-the-server-up-and-is-a-model-loaded"},{"title":"The model, the device and the limits","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/capabilities","href":"/api-reference/the-model-the-device-and-the-limits"}]},{"group":"Forecasting","pages":[{"title":"Forecast one or many series","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/forecast","href":"/api-reference/forecast-one-or-many-series"},{"title":"Forecast, with the history and the future inputs as files","description":"The same as /v1/forecast, with CSV or Parquet files.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/forecast-file","href":"/api-reference/forecast-with-the-history-and-the-future-inputs-as-files"},{"title":"How good the forecasts are: hold out the last steps and score them","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/evaluate-forecast","href":"/api-reference/how-good-the-forecasts-are:-hold-out-the-last-steps-and-score-them"}]},{"group":"Tables and sequences","pages":[{"title":"Read the context rows once","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fit","href":"/api-reference/read-the-context-rows-once"},{"title":"Read the context rows once, from a CSV or Parquet file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fit-file","href":"/api-reference/read-the-context-rows-once-from-a-csv-or-parquet-file"},{"title":"Predict rows against a context","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/predict","href":"/api-reference/predict-rows-against-a-context"},{"title":"Predict the rows of a CSV or Parquet file against a context","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/predict-file","href":"/api-reference/predict-the-rows-of-a-csv-or-parquet-file-against-a-context"},{"title":"Predict the rows whose target is empty, from the rows whose target is known","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fill","href":"/api-reference/predict-the-rows-whose-target-is-empty-from-the-rows-whose-target-is-known"},{"title":"Fill the empty targets of a CSV or Parquet file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/fill-file","href":"/api-reference/fill-the-empty-targets-of-a-csv-or-parquet-file"},{"title":"How good are the predictions: hold out a share of the rows and score them against a simple baseline","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/evaluate","href":"/api-reference/how-good-are-the-predictions:-hold-out-a-share-of-the-rows-and-score-them-against-a-simple-baseline"},{"title":"Evaluate on a CSV or Parquet file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/evaluate-file","href":"/api-reference/evaluate-on-a-csv-or-parquet-file"},{"title":"The contexts held in memory","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/contexts","href":"/api-reference/the-contexts-held-in-memory"},{"title":"Free a context","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/contexts/{context_id}","href":"/api-reference/free-a-context"}]},{"group":"Databases","pages":[{"title":"Send the tables of a database once","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases","href":"/api-reference/send-the-tables-of-a-database-once"},{"title":"Send the tables of a database once, as CSV or Parquet files","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases-files","href":"/api-reference/send-the-tables-of-a-database-once-as-csv-or-parquet-files"},{"title":"The databases held in memory","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/databases","href":"/api-reference/the-databases-held-in-memory"},{"title":"A database's tables, keys, and which tables of events reach each table of things","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/databases/{database_id}","href":"/api-reference/a-databases-tables-keys-and-which-tables-of-events-reach-each-table-of-things"},{"title":"Free a database","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /v1/databases/{database_id}","href":"/api-reference/free-a-database"},{"title":"Predict an answer per entity and date, from labelled examples","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/predict","href":"/api-reference/predict-an-answer-per-entity-and-date-from-labelled-examples"},{"title":"The same, with the examples and the rows to predict as CSV or Parquet files","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/predict-files","href":"/api-reference/the-same-with-the-examples-and-the-rows-to-predict-as-csv-or-parquet-files"},{"title":"How good are the predictions: hold out the latest examples and score them","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/evaluate","href":"/api-reference/how-good-are-the-predictions:-hold-out-the-latest-examples-and-score-them"},{"title":"The same, with the examples as a CSV or Parquet file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/evaluate-file","href":"/api-reference/the-same-with-the-examples-as-a-csv-or-parquet-file"}]},{"group":"Recommendation","pages":[{"title":"For each source at a date, the k items it will most likely link to","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/recommend","href":"/api-reference/for-each-source-at-a-date-the-k-items-it-will-most-likely-link-to"},{"title":"MAP@k of the lists of one date, against rankings that need no training","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/evaluate-recommend","href":"/api-reference/map@k-of-the-lists-of-one-date-against-rankings-that-need-no-training"}]},{"group":"Tasks described in words","pages":[{"title":"Predict a task described in words","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/tasks/predict","href":"/api-reference/predict-a-task-described-in-words"},{"title":"How good the predictions of a task described in words are","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/databases/{database_id}/tasks/evaluate","href":"/api-reference/how-good-the-predictions-of-a-task-described-in-words-are"}]}]}]},"basePath":"","title":"How good the forecasts are: hold out the last steps and score them - tabSutra","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}