@model-match/api 3.79.0 → 3.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RELEASE_NOTES.md +9 -0
- package/dist/{index-CXBAeaSu.d.mts → index-uHovaz1c.d.mts} +106 -10
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +7 -7
- package/dist/slim/index.mjs +7 -7
- package/dist/{src-bW2n1ku2.mjs → src-c-fp5gD8.mjs} +6 -6
- package/openapi.json +220 -11
- package/package.json +1 -1
|
@@ -7790,7 +7790,7 @@ var Studio = class {
|
|
|
7790
7790
|
/**
|
|
7791
7791
|
* Tables you can query in Studio, with their columns
|
|
7792
7792
|
*
|
|
7793
|
-
* Everything a Studio question can read: the market tables (recorded mortgage loans, home listings and sales), the result tables of your organization's own saved jobs, the files your organization uploaded (`upload_…`) and your organization's CRM (`crm_…`: the lists shared with the whole organization and the records in them, refreshed about every 15 minutes; they join to market data on NMLS ids). Each table lists its columns with a type and a plain-language description, and notes worth reading before writing SQL. `limits` says how many rows an answer can carry and how long a question may run; `guidance` says how to write SQL that works here. `notes` carries anything worth telling the user about the catalog itself, such as why there are no CRM tables yet. Read this before the first question in a conversation. Free.
|
|
7793
|
+
* Everything a Studio question can read: the market tables (recorded mortgage loans, home listings and sales), the result tables of your organization's own saved jobs, the files your organization uploaded (`upload_…`) and your organization's CRM (`crm_…`: the lists shared with the whole organization and the records in them, refreshed about every 15 minutes; they join to market data on NMLS ids) and the tables ModelMatch publishes for every organization (`mm_…`, kind `published`: already computed, read-only, each says when it was last refreshed — when one covers the question, query it instead of recomputing from the market tables). Each table lists its columns with a type and a plain-language description, and notes worth reading before writing SQL. `limits` says how many rows an answer can carry and how long a question may run; `guidance` says how to write SQL that works here. `notes` carries anything worth telling the user about the catalog itself, such as why there are no CRM tables yet. Read this before the first question in a conversation. Free.
|
|
7794
7794
|
*/
|
|
7795
7795
|
static getStudioCatalog(options) {
|
|
7796
7796
|
return (options?.client ?? client).get({
|
|
@@ -7902,7 +7902,7 @@ var Studio = class {
|
|
|
7902
7902
|
/**
|
|
7903
7903
|
* Your organization's models
|
|
7904
7904
|
*
|
|
7905
|
-
* Every model your organization has: its status, what it predicts, the data points it uses, its report card and where its scores are. Only your organization's models are listed. Listing is free; a model that has just finished is charged for here if this is the first call to see it (`credits`), exactly as getStudioModel would.
|
|
7905
|
+
* Every model your organization has: its status, what it predicts, the data points it uses (`featureLabels` in plain words), its report card and where its scores are; for one that is training, the step it is on and how long is left (`progress`, `expectedMinutes`: estimates). Only your organization's models are listed. Listing is free; a model that has just finished is charged for here if this is the first call to see it (`credits`), exactly as getStudioModel would.
|
|
7906
7906
|
*/
|
|
7907
7907
|
static listStudioModels(options) {
|
|
7908
7908
|
return (options?.client ?? client).get({
|
|
@@ -7920,7 +7920,7 @@ var Studio = class {
|
|
|
7920
7920
|
/**
|
|
7921
7921
|
* Create a prediction model and start training it
|
|
7922
7922
|
*
|
|
7923
|
-
* Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training
|
|
7923
|
+
* Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training` and `expectedMinutes`, a range that depends on the size of the state: a couple of minutes for a small state, 15 to 25 for the largest (an estimate; say the range, and say it is an estimate). Read the model with getStudioModel until it is `ready` or `refused`: `progress` gives the numbered step it is on and how long is left. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. An uploaded file's table is named `upload_<name>` (the upload `my_deals` is the table `upload_my_deals`); a wrong name is refused with the names that exist. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). One model trains at a time per organization, up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.
|
|
7924
7924
|
*/
|
|
7925
7925
|
static createStudioModel(options) {
|
|
7926
7926
|
return (options.client ?? client).post({
|
|
@@ -7942,7 +7942,7 @@ var Studio = class {
|
|
|
7942
7942
|
/**
|
|
7943
7943
|
* What a prediction model can be built from
|
|
7944
7944
|
*
|
|
7945
|
-
* Everything needed to define a model: the outcomes that can be predicted, who can be scored (`populations`), the data points a model may use, grouped by theme, each with a line on why someone might believe it matters, the limits,
|
|
7945
|
+
* Everything needed to define a model: the outcomes that can be predicted, who can be scored (`populations`), the data points a model may use, grouped by theme, each with a line on why someone might believe it matters, the limits, what a table of your own outcomes must contain, and how long a model takes for each state (`trainingTime`: a range of minutes, an estimate). Call this first, show the themes, and ASK which data points the person believes matter: a model is trained on exactly their picks, and its report card tests that belief. Free.
|
|
7946
7946
|
*/
|
|
7947
7947
|
static getStudioModelOptions(options) {
|
|
7948
7948
|
return (options?.client ?? client).get({
|
|
@@ -7978,7 +7978,7 @@ var Studio = class {
|
|
|
7978
7978
|
/**
|
|
7979
7979
|
* A model: its status and its report card
|
|
7980
7980
|
*
|
|
7981
|
-
* The model and, once training has finished, its report card (`card`). Read the card as it is written. It says how many past cases the model learned from and was tested on; the lift (`in the top 10% of the list, X of every 100 had the outcome, against Y at random and Z for the best simple rule`); three checks, each passed or not; how much each chosen data point mattered; how the person's picks compare with using every data point; and the caveats. Never promise accuracy, and never call a score a probability unless `card.calibration.calibrated` is true (then
|
|
7981
|
+
* The model and, once training has finished, its report card (`card`). While it trains, `progress` says which numbered step it is on, how long it has been and how long is left (an estimate, as a range). Read the card as it is written, using its sentences and labels: fields named `id`, `code`, `verdict`, `better`, and everything under `technical`, are for programs and are never shown to a person. It says how many past cases the model learned from and was tested on; the lift (`in the top 10% of the list, X of every 100 had the outcome, against Y at random and Z for the best simple rule`); three checks, each passed or not; how much each chosen data point mattered; how the person's picks compare with using every data point; and the caveats. Never promise accuracy, and never call a score a probability unless `card.calibration.calibrated` is true (then each home's estimated chance is an estimate from past cases). `status: refused` means the model is not dependable enough to publish: `card.refusal.reason` says why and `card.refusal.whatWouldHelp` what to try; a refused model has no scores. When `scores` is not null, query `scores.table` with runStudioQuery: one row per home with `rank`, `percentile`, `score`, `topReason`, the home's `city` and `zipCode` (select those and leave `streetAddress` out to show the list without street addresses), and `propertyId` to join to `loans` and `sales`. Reading is free. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). The charge is reported in `credits`.
|
|
7982
7982
|
*/
|
|
7983
7983
|
static getStudioModel(options) {
|
|
7984
7984
|
return (options.client ?? client).get({
|
|
@@ -7996,7 +7996,7 @@ var Studio = class {
|
|
|
7996
7996
|
/**
|
|
7997
7997
|
* Refresh a model's scores with the latest data
|
|
7998
7998
|
*
|
|
7999
|
-
* Score the model's population again as of today, with the trained model as it is. The current scores stay queryable until the new ones are ready; read the model with getStudioModel to see when (`refresh` goes back to null and `scores.asOf` moves). Pass `retrain: true` to also train it again on the latest data (the same data points, a fresh report card; if it no longer passes its checks it becomes `refused` and its scores are taken down). A model with a `weekly` or `monthly` schedule is refreshed on its own. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.
|
|
7999
|
+
* Score the model's population again as of today, with the trained model as it is. The current scores stay queryable until the new ones are ready; read the model with getStudioModel to see when (`refresh` goes back to null and `scores.asOf` moves); `expectedMinutes` says how long it is expected to take. Pass `retrain: true` to also train it again on the latest data (the same data points, a fresh report card; if it no longer passes its checks it becomes `refused` and its scores are taken down). A model with a `weekly` or `monthly` schedule is refreshed on its own. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.
|
|
8000
8000
|
*/
|
|
8001
8001
|
static refreshStudioModel(options) {
|
|
8002
8002
|
return (options.client ?? client).post({
|
package/openapi.json
CHANGED
|
@@ -47182,6 +47182,11 @@
|
|
|
47182
47182
|
},
|
|
47183
47183
|
"type": "array"
|
|
47184
47184
|
},
|
|
47185
|
+
"completeThrough": {
|
|
47186
|
+
"description": "For a market table: the last day (YYYY-MM-DD) its records are treated as fully recorded. Later months are still filling in, so end trends and year-over-year windows here, not at today, and compare the same months of each year.",
|
|
47187
|
+
"nullable": true,
|
|
47188
|
+
"type": "string"
|
|
47189
|
+
},
|
|
47185
47190
|
"coverage": {
|
|
47186
47191
|
"description": "What part of the data is available, when not all of it.",
|
|
47187
47192
|
"type": "string"
|
|
@@ -47222,13 +47227,14 @@
|
|
|
47222
47227
|
"type": "object"
|
|
47223
47228
|
},
|
|
47224
47229
|
"kind": {
|
|
47225
|
-
"description": "`market` — market data, the same for everyone. `job_result` — the latest result of one of your organization's saved jobs. `upload` — a file your organization uploaded. `crm` — your organization's own CRM records (the lists shared with the whole organization and the records in them), refreshed about every 15 minutes. `model` — the scores of one of your organization's prediction models.",
|
|
47230
|
+
"description": "`market` — market data, the same for everyone. `job_result` — the latest result of one of your organization's saved jobs. `upload` — a file your organization uploaded. `crm` — your organization's own CRM records (the lists shared with the whole organization and the records in them), refreshed about every 15 minutes. `model` — the scores of one of your organization's prediction models. `published` — a table ModelMatch computes and keeps up to date for every organization (its name starts with `mm_`): read-only, the same rows for everyone, and the right source for what it covers.",
|
|
47226
47231
|
"enum": [
|
|
47227
47232
|
"market",
|
|
47228
47233
|
"job_result",
|
|
47229
47234
|
"upload",
|
|
47230
47235
|
"crm",
|
|
47231
|
-
"model"
|
|
47236
|
+
"model",
|
|
47237
|
+
"published"
|
|
47232
47238
|
],
|
|
47233
47239
|
"type": "string"
|
|
47234
47240
|
},
|
|
@@ -47243,6 +47249,26 @@
|
|
|
47243
47249
|
},
|
|
47244
47250
|
"type": "array"
|
|
47245
47251
|
},
|
|
47252
|
+
"published": {
|
|
47253
|
+
"description": "For a `published` table: who maintains it and when it was last refreshed.",
|
|
47254
|
+
"properties": {
|
|
47255
|
+
"maintainedBy": {
|
|
47256
|
+
"description": "Who computes and maintains the table.",
|
|
47257
|
+
"example": "ModelMatch",
|
|
47258
|
+
"type": "string"
|
|
47259
|
+
},
|
|
47260
|
+
"refreshedAt": {
|
|
47261
|
+
"description": "When its rows were last computed (ISO 8601).",
|
|
47262
|
+
"nullable": true,
|
|
47263
|
+
"type": "string"
|
|
47264
|
+
}
|
|
47265
|
+
},
|
|
47266
|
+
"required": [
|
|
47267
|
+
"maintainedBy",
|
|
47268
|
+
"refreshedAt"
|
|
47269
|
+
],
|
|
47270
|
+
"type": "object"
|
|
47271
|
+
},
|
|
47246
47272
|
"refreshedAt": {
|
|
47247
47273
|
"description": "For a `crm` table: when your organization's records were last copied in (ISO 8601). Changes made in the CRM since then appear after the next refresh.",
|
|
47248
47274
|
"nullable": true,
|
|
@@ -48153,7 +48179,7 @@
|
|
|
48153
48179
|
"additionalProperties": {
|
|
48154
48180
|
"nullable": true
|
|
48155
48181
|
},
|
|
48156
|
-
"description": "The report card (`ready` and `refused`). Read it to the person as it is written; do not round it up. `headline` — one sentence. `learnedFrom` — how many past cases and over what dates, and the later cases it was tested on. `lift.top10` (and `lift.top1` on large tests) — `modelPer100`, `randomPer100`, `bestSimpleRulePer100` and a ready-made `sentence`. `checks` — three, each `passed` true or false
|
|
48182
|
+
"description": "The report card (`ready` and `refused`). Read it to the person as it is written; do not round it up. Show the sentences and the fields named `label`, `…Label`, `sentence`, `detail`, `reason`, `summary` and `note`: they are written in plain words. The fields named `id`, `code`, `verdict`, `better`, `kind`, `table` and `column`, and everything under `technical` and `details`, are for programs: never show them to a person (say `verdictLabel` \"helped a little\", not `verdict` `helped_a_little`). `headline` — one sentence. `outcome.label` — what it predicts. `learnedFrom` — how many past cases and over what dates, and the later cases it was tested on; for a model on the person's own outcomes, `learnedFrom.funnel` — the rows in their file, then how many had a date and an outcome, matched a home, had history before their date and were used, each with the reason rows were dropped (`funnel.sentence` says it in one line). `lift.top10` (and `lift.top1` on large tests) — `modelPer100`, `randomPer100`, `bestSimpleRulePer100` and a ready-made `sentence`. `checks` — three, each `passed` true or false, with a `label` and a `detail`: beats the best simple rule, finds nothing when the outcomes are shuffled, holds up across time periods. `dataPoints.ranking` — each data point's `label`, its share, a `verdictLabel` and a `sentence`, and `dataPoints.summary`. `comparison` — the person's picks against every available data point (`sentence`, `betterLabel`) and `worthAdding`. `changeFromPrevious.sentence` — what changed since the version it replaced or was based on. `calibration.calibrated` — only when true may a home's estimated chance be called a chance; otherwise scores are a ranking; `calibration.note` says it. `caution` — when present, say it first. `caveats` — say them. `refusal` — `reason` and `whatWouldHelp` when refused.",
|
|
48157
48183
|
"nullable": true,
|
|
48158
48184
|
"type": "object"
|
|
48159
48185
|
},
|
|
@@ -48184,6 +48210,30 @@
|
|
|
48184
48210
|
],
|
|
48185
48211
|
"type": "object"
|
|
48186
48212
|
},
|
|
48213
|
+
"expectedMinutes": {
|
|
48214
|
+
"description": "While a run is going (training, or a refresh): how long a run like it takes from start to finish, in minutes. It depends on the size of the state: a couple of minutes for a small one, 15 to 25 for the largest. An estimate. Null when nothing is running.",
|
|
48215
|
+
"nullable": true,
|
|
48216
|
+
"properties": {
|
|
48217
|
+
"high": {
|
|
48218
|
+
"type": "number"
|
|
48219
|
+
},
|
|
48220
|
+
"low": {
|
|
48221
|
+
"type": "number"
|
|
48222
|
+
}
|
|
48223
|
+
},
|
|
48224
|
+
"required": [
|
|
48225
|
+
"low",
|
|
48226
|
+
"high"
|
|
48227
|
+
],
|
|
48228
|
+
"type": "object"
|
|
48229
|
+
},
|
|
48230
|
+
"featureLabels": {
|
|
48231
|
+
"description": "The data points by their plain labels, in the same order as `features`.",
|
|
48232
|
+
"items": {
|
|
48233
|
+
"type": "string"
|
|
48234
|
+
},
|
|
48235
|
+
"type": "array"
|
|
48236
|
+
},
|
|
48187
48237
|
"features": {
|
|
48188
48238
|
"items": {
|
|
48189
48239
|
"$ref": "#/components/schemas/StudioModelDataPoint"
|
|
@@ -48209,6 +48259,10 @@
|
|
|
48209
48259
|
"nullable": true,
|
|
48210
48260
|
"type": "string"
|
|
48211
48261
|
},
|
|
48262
|
+
"outcomeLabel": {
|
|
48263
|
+
"description": "What the model predicts, in plain words. Show a person this, `populationLabel` and `featureLabels`; `outcome`, `population` and `features` are the request's own values, for programs.",
|
|
48264
|
+
"type": "string"
|
|
48265
|
+
},
|
|
48212
48266
|
"outcomeSource": {
|
|
48213
48267
|
"additionalProperties": false,
|
|
48214
48268
|
"nullable": true,
|
|
@@ -48263,15 +48317,68 @@
|
|
|
48263
48317
|
"population": {
|
|
48264
48318
|
"$ref": "#/components/schemas/StudioModelPopulation"
|
|
48265
48319
|
},
|
|
48320
|
+
"populationLabel": {
|
|
48321
|
+
"description": "Who is scored, in plain words.",
|
|
48322
|
+
"type": "string"
|
|
48323
|
+
},
|
|
48266
48324
|
"progress": {
|
|
48267
|
-
"description": "
|
|
48325
|
+
"description": "While the model trains: the step it is on, how long it has been, and how long is left (an estimate). Tell the person the step and the remaining range, as a range.",
|
|
48268
48326
|
"nullable": true,
|
|
48269
48327
|
"properties": {
|
|
48328
|
+
"elapsedSeconds": {
|
|
48329
|
+
"description": "Seconds since the run was started.",
|
|
48330
|
+
"type": "number"
|
|
48331
|
+
},
|
|
48332
|
+
"expectedMinutes": {
|
|
48333
|
+
"description": "A range of minutes, `low` to `high`. An estimate from earlier runs of the same size, not a promise: say it as a range (\"about 13 to 23 minutes\").",
|
|
48334
|
+
"nullable": true,
|
|
48335
|
+
"properties": {
|
|
48336
|
+
"high": {
|
|
48337
|
+
"type": "number"
|
|
48338
|
+
},
|
|
48339
|
+
"low": {
|
|
48340
|
+
"type": "number"
|
|
48341
|
+
}
|
|
48342
|
+
},
|
|
48343
|
+
"required": [
|
|
48344
|
+
"low",
|
|
48345
|
+
"high"
|
|
48346
|
+
],
|
|
48347
|
+
"type": "object"
|
|
48348
|
+
},
|
|
48349
|
+
"note": {
|
|
48350
|
+
"description": "Says that the times are estimates, or that the run is past its estimate and still going. Pass it on.",
|
|
48351
|
+
"type": "string"
|
|
48352
|
+
},
|
|
48353
|
+
"remainingMinutes": {
|
|
48354
|
+
"description": "What is left of the estimate. Null when there is no estimate for this run.",
|
|
48355
|
+
"nullable": true,
|
|
48356
|
+
"properties": {
|
|
48357
|
+
"high": {
|
|
48358
|
+
"type": "number"
|
|
48359
|
+
},
|
|
48360
|
+
"low": {
|
|
48361
|
+
"type": "number"
|
|
48362
|
+
}
|
|
48363
|
+
},
|
|
48364
|
+
"required": [
|
|
48365
|
+
"low",
|
|
48366
|
+
"high"
|
|
48367
|
+
],
|
|
48368
|
+
"type": "object"
|
|
48369
|
+
},
|
|
48270
48370
|
"stage": {
|
|
48371
|
+
"description": "The step the run is on, numbered: \"step 3 of 6: building past cases to learn from\". Steps only ever go up.",
|
|
48271
48372
|
"type": "string"
|
|
48272
48373
|
},
|
|
48273
48374
|
"startedAt": {
|
|
48274
48375
|
"type": "string"
|
|
48376
|
+
},
|
|
48377
|
+
"step": {
|
|
48378
|
+
"type": "number"
|
|
48379
|
+
},
|
|
48380
|
+
"steps": {
|
|
48381
|
+
"type": "number"
|
|
48275
48382
|
}
|
|
48276
48383
|
},
|
|
48277
48384
|
"required": [
|
|
@@ -48284,6 +48391,10 @@
|
|
|
48284
48391
|
"description": "A refresh in progress, or why the last one produced nothing (the earlier scores stay).",
|
|
48285
48392
|
"nullable": true,
|
|
48286
48393
|
"properties": {
|
|
48394
|
+
"elapsedSeconds": {
|
|
48395
|
+
"description": "While it runs: seconds since it started. `expectedMinutes` on the model says how long a refresh takes.",
|
|
48396
|
+
"type": "number"
|
|
48397
|
+
},
|
|
48287
48398
|
"error": {
|
|
48288
48399
|
"properties": {
|
|
48289
48400
|
"code": {
|
|
@@ -48902,6 +49013,104 @@
|
|
|
48902
49013
|
},
|
|
48903
49014
|
"type": "array"
|
|
48904
49015
|
},
|
|
49016
|
+
"trainingTime": {
|
|
49017
|
+
"description": "How long a model takes from start to finish, as a range of minutes: for each state (`states`, when the sizes are known) and by size of state (`sizes`). An estimate from earlier runs (`note` says so; pass it on). Tell the person the range for their state BEFORE starting a model.",
|
|
49018
|
+
"properties": {
|
|
49019
|
+
"basis": {
|
|
49020
|
+
"type": "string"
|
|
49021
|
+
},
|
|
49022
|
+
"note": {
|
|
49023
|
+
"type": "string"
|
|
49024
|
+
},
|
|
49025
|
+
"sizes": {
|
|
49026
|
+
"items": {
|
|
49027
|
+
"properties": {
|
|
49028
|
+
"expectedMinutes": {
|
|
49029
|
+
"description": "A range of minutes, `low` to `high`. An estimate from earlier runs of the same size, not a promise: say it as a range (\"about 13 to 23 minutes\").",
|
|
49030
|
+
"properties": {
|
|
49031
|
+
"high": {
|
|
49032
|
+
"type": "number"
|
|
49033
|
+
},
|
|
49034
|
+
"low": {
|
|
49035
|
+
"type": "number"
|
|
49036
|
+
}
|
|
49037
|
+
},
|
|
49038
|
+
"required": [
|
|
49039
|
+
"low",
|
|
49040
|
+
"high"
|
|
49041
|
+
],
|
|
49042
|
+
"type": "object"
|
|
49043
|
+
},
|
|
49044
|
+
"label": {
|
|
49045
|
+
"type": "string"
|
|
49046
|
+
},
|
|
49047
|
+
"size": {
|
|
49048
|
+
"enum": [
|
|
49049
|
+
"small",
|
|
49050
|
+
"medium",
|
|
49051
|
+
"large"
|
|
49052
|
+
],
|
|
49053
|
+
"type": "string"
|
|
49054
|
+
}
|
|
49055
|
+
},
|
|
49056
|
+
"required": [
|
|
49057
|
+
"size",
|
|
49058
|
+
"label",
|
|
49059
|
+
"expectedMinutes"
|
|
49060
|
+
],
|
|
49061
|
+
"type": "object"
|
|
49062
|
+
},
|
|
49063
|
+
"type": "array"
|
|
49064
|
+
},
|
|
49065
|
+
"states": {
|
|
49066
|
+
"items": {
|
|
49067
|
+
"properties": {
|
|
49068
|
+
"expectedMinutes": {
|
|
49069
|
+
"description": "A range of minutes, `low` to `high`. An estimate from earlier runs of the same size, not a promise: say it as a range (\"about 13 to 23 minutes\").",
|
|
49070
|
+
"properties": {
|
|
49071
|
+
"high": {
|
|
49072
|
+
"type": "number"
|
|
49073
|
+
},
|
|
49074
|
+
"low": {
|
|
49075
|
+
"type": "number"
|
|
49076
|
+
}
|
|
49077
|
+
},
|
|
49078
|
+
"required": [
|
|
49079
|
+
"low",
|
|
49080
|
+
"high"
|
|
49081
|
+
],
|
|
49082
|
+
"type": "object"
|
|
49083
|
+
},
|
|
49084
|
+
"size": {
|
|
49085
|
+
"enum": [
|
|
49086
|
+
"small",
|
|
49087
|
+
"medium",
|
|
49088
|
+
"large"
|
|
49089
|
+
],
|
|
49090
|
+
"type": "string"
|
|
49091
|
+
},
|
|
49092
|
+
"state": {
|
|
49093
|
+
"type": "string"
|
|
49094
|
+
}
|
|
49095
|
+
},
|
|
49096
|
+
"required": [
|
|
49097
|
+
"state",
|
|
49098
|
+
"size",
|
|
49099
|
+
"expectedMinutes"
|
|
49100
|
+
],
|
|
49101
|
+
"type": "object"
|
|
49102
|
+
},
|
|
49103
|
+
"type": "array"
|
|
49104
|
+
}
|
|
49105
|
+
},
|
|
49106
|
+
"required": [
|
|
49107
|
+
"note",
|
|
49108
|
+
"basis",
|
|
49109
|
+
"sizes",
|
|
49110
|
+
"states"
|
|
49111
|
+
],
|
|
49112
|
+
"type": "object"
|
|
49113
|
+
},
|
|
48905
49114
|
"uploadedOutcomes": {
|
|
48906
49115
|
"properties": {
|
|
48907
49116
|
"keyKinds": {
|
|
@@ -50486,7 +50695,7 @@
|
|
|
50486
50695
|
"info": {
|
|
50487
50696
|
"description": "ModelMatch API — mortgage and real-estate market data.\n\n## Bulk delivery limits\n\nThe `POST /{entity}/bulk-delivery` endpoints export a full result set to\nS3 as NDJSON, JSON, CSV, or Parquet.\n\n- **Up to 5,000 rows per delivery: no entitlement required.** Available to\n every authenticated caller.\n- **Above 5,000 rows: requires the entity's `bulk-delivery.{entity}`\n entitlement** (e.g. `bulk-delivery.loans`). The grant's scope sets your\n row ceiling and may also restrict which rows and fields you receive.\n\nA delivery that would exceed the limit available to you is rejected with\n`403 entitlement_missing`, reporting the matched row count and the ceiling\nthat applied. To stay under the limit, pass `limit` — the job then delivers\n(and bills for) only the first `limit` rows of a broader query.\n\n**Need a higher limit?** Email support@modelmatch.com to request the\nentitlement. Limits are raised per organization and per entity.\n\nBulk delivery is billed at 1 credit per delivered row whether or not\nan entitlement is held.\n\nInstead of a download, a delivery can be sent to a push target configured\non your workspace: pass `destination: { type: \"push-target\", targetId }`.\nThe same limits and billing apply.",
|
|
50488
50697
|
"title": "ModelMatch API",
|
|
50489
|
-
"version": "3.
|
|
50698
|
+
"version": "3.162.0"
|
|
50490
50699
|
},
|
|
50491
50700
|
"openapi": "3.1.0",
|
|
50492
50701
|
"paths": {
|
|
@@ -89358,7 +89567,7 @@
|
|
|
89358
89567
|
},
|
|
89359
89568
|
"/v1/studio/catalog": {
|
|
89360
89569
|
"get": {
|
|
89361
|
-
"description": "Everything a Studio question can read: the market tables (recorded mortgage loans, home listings and sales), the result tables of your organization's own saved jobs, the files your organization uploaded (`upload_…`) and your organization's CRM (`crm_…`: the lists shared with the whole organization and the records in them, refreshed about every 15 minutes; they join to market data on NMLS ids). Each table lists its columns with a type and a plain-language description, and notes worth reading before writing SQL. `limits` says how many rows an answer can carry and how long a question may run; `guidance` says how to write SQL that works here. `notes` carries anything worth telling the user about the catalog itself, such as why there are no CRM tables yet. Read this before the first question in a conversation. Free.",
|
|
89570
|
+
"description": "Everything a Studio question can read: the market tables (recorded mortgage loans, home listings and sales), the result tables of your organization's own saved jobs, the files your organization uploaded (`upload_…`) and your organization's CRM (`crm_…`: the lists shared with the whole organization and the records in them, refreshed about every 15 minutes; they join to market data on NMLS ids) and the tables ModelMatch publishes for every organization (`mm_…`, kind `published`: already computed, read-only, each says when it was last refreshed — when one covers the question, query it instead of recomputing from the market tables). Each table lists its columns with a type and a plain-language description, and notes worth reading before writing SQL. `limits` says how many rows an answer can carry and how long a question may run; `guidance` says how to write SQL that works here. `notes` carries anything worth telling the user about the catalog itself, such as why there are no CRM tables yet. Read this before the first question in a conversation. Free.",
|
|
89362
89571
|
"operationId": "getStudioCatalog",
|
|
89363
89572
|
"responses": {
|
|
89364
89573
|
"200": {
|
|
@@ -90028,7 +90237,7 @@
|
|
|
90028
90237
|
},
|
|
90029
90238
|
"/v1/studio/models": {
|
|
90030
90239
|
"get": {
|
|
90031
|
-
"description": "Every model your organization has: its status, what it predicts, the data points it uses, its report card and where its scores are. Only your organization's models are listed. Listing is free; a model that has just finished is charged for here if this is the first call to see it (`credits`), exactly as getStudioModel would.",
|
|
90240
|
+
"description": "Every model your organization has: its status, what it predicts, the data points it uses (`featureLabels` in plain words), its report card and where its scores are; for one that is training, the step it is on and how long is left (`progress`, `expectedMinutes`: estimates). Only your organization's models are listed. Listing is free; a model that has just finished is charged for here if this is the first call to see it (`credits`), exactly as getStudioModel would.",
|
|
90032
90241
|
"operationId": "listStudioModels",
|
|
90033
90242
|
"responses": {
|
|
90034
90243
|
"200": {
|
|
@@ -90128,7 +90337,7 @@
|
|
|
90128
90337
|
]
|
|
90129
90338
|
},
|
|
90130
90339
|
"post": {
|
|
90131
|
-
"description": "Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training
|
|
90340
|
+
"description": "Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training` and `expectedMinutes`, a range that depends on the size of the state: a couple of minutes for a small state, 15 to 25 for the largest (an estimate; say the range, and say it is an estimate). Read the model with getStudioModel until it is `ready` or `refused`: `progress` gives the numbered step it is on and how long is left. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. An uploaded file's table is named `upload_<name>` (the upload `my_deals` is the table `upload_my_deals`); a wrong name is refused with the names that exist. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). One model trains at a time per organization, up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
|
|
90132
90341
|
"operationId": "createStudioModel",
|
|
90133
90342
|
"requestBody": {
|
|
90134
90343
|
"content": {
|
|
@@ -90240,7 +90449,7 @@
|
|
|
90240
90449
|
},
|
|
90241
90450
|
"/v1/studio/models/options": {
|
|
90242
90451
|
"get": {
|
|
90243
|
-
"description": "Everything needed to define a model: the outcomes that can be predicted, who can be scored (`populations`), the data points a model may use, grouped by theme, each with a line on why someone might believe it matters, the limits,
|
|
90452
|
+
"description": "Everything needed to define a model: the outcomes that can be predicted, who can be scored (`populations`), the data points a model may use, grouped by theme, each with a line on why someone might believe it matters, the limits, what a table of your own outcomes must contain, and how long a model takes for each state (`trainingTime`: a range of minutes, an estimate). Call this first, show the themes, and ASK which data points the person believes matter: a model is trained on exactly their picks, and its report card tests that belief. Free.",
|
|
90244
90453
|
"operationId": "getStudioModelOptions",
|
|
90245
90454
|
"responses": {
|
|
90246
90455
|
"200": {
|
|
@@ -90456,7 +90665,7 @@
|
|
|
90456
90665
|
]
|
|
90457
90666
|
},
|
|
90458
90667
|
"get": {
|
|
90459
|
-
"description": "The model and, once training has finished, its report card (`card`). Read the card as it is written. It says how many past cases the model learned from and was tested on; the lift (`in the top 10% of the list, X of every 100 had the outcome, against Y at random and Z for the best simple rule`); three checks, each passed or not; how much each chosen data point mattered; how the person's picks compare with using every data point; and the caveats. Never promise accuracy, and never call a score a probability unless `card.calibration.calibrated` is true (then
|
|
90668
|
+
"description": "The model and, once training has finished, its report card (`card`). While it trains, `progress` says which numbered step it is on, how long it has been and how long is left (an estimate, as a range). Read the card as it is written, using its sentences and labels: fields named `id`, `code`, `verdict`, `better`, and everything under `technical`, are for programs and are never shown to a person. It says how many past cases the model learned from and was tested on; the lift (`in the top 10% of the list, X of every 100 had the outcome, against Y at random and Z for the best simple rule`); three checks, each passed or not; how much each chosen data point mattered; how the person's picks compare with using every data point; and the caveats. Never promise accuracy, and never call a score a probability unless `card.calibration.calibrated` is true (then each home's estimated chance is an estimate from past cases). `status: refused` means the model is not dependable enough to publish: `card.refusal.reason` says why and `card.refusal.whatWouldHelp` what to try; a refused model has no scores. When `scores` is not null, query `scores.table` with runStudioQuery: one row per home with `rank`, `percentile`, `score`, `topReason`, the home's `city` and `zipCode` (select those and leave `streetAddress` out to show the list without street addresses), and `propertyId` to join to `loans` and `sales`. Reading is free. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). The charge is reported in `credits`.",
|
|
90460
90669
|
"operationId": "getStudioModel",
|
|
90461
90670
|
"parameters": [
|
|
90462
90671
|
{
|
|
@@ -90582,7 +90791,7 @@
|
|
|
90582
90791
|
},
|
|
90583
90792
|
"/v1/studio/models/{name}/refresh": {
|
|
90584
90793
|
"post": {
|
|
90585
|
-
"description": "Score the model's population again as of today, with the trained model as it is. The current scores stay queryable until the new ones are ready; read the model with getStudioModel to see when (`refresh` goes back to null and `scores.asOf` moves). Pass `retrain: true` to also train it again on the latest data (the same data points, a fresh report card; if it no longer passes its checks it becomes `refused` and its scores are taken down). A model with a `weekly` or `monthly` schedule is refreshed on its own. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
|
|
90794
|
+
"description": "Score the model's population again as of today, with the trained model as it is. The current scores stay queryable until the new ones are ready; read the model with getStudioModel to see when (`refresh` goes back to null and `scores.asOf` moves); `expectedMinutes` says how long it is expected to take. Pass `retrain: true` to also train it again on the latest data (the same data points, a fresh report card; if it no longer passes its checks it becomes `refused` and its scores are taken down). A model with a `weekly` or `monthly` schedule is refreshed on its own. 10 credits for refreshed scores, charged once, the same way (a scheduled refresh too). 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
|
|
90586
90795
|
"operationId": "refreshStudioModel",
|
|
90587
90796
|
"parameters": [
|
|
90588
90797
|
{
|