@model-match/api 3.79.0 → 3.79.1
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 +4 -0
- package/dist/{index-CXBAeaSu.d.mts → index-CdwXnduS.d.mts} +90 -7
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +6 -6
- package/dist/slim/index.mjs +6 -6
- package/dist/{src-bW2n1ku2.mjs → src-DsHTdH5F.mjs} +5 -5
- package/openapi.json +196 -8
- package/package.json +1 -1
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"
|
|
@@ -48153,7 +48158,7 @@
|
|
|
48153
48158
|
"additionalProperties": {
|
|
48154
48159
|
"nullable": true
|
|
48155
48160
|
},
|
|
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
|
|
48161
|
+
"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
48162
|
"nullable": true,
|
|
48158
48163
|
"type": "object"
|
|
48159
48164
|
},
|
|
@@ -48184,6 +48189,30 @@
|
|
|
48184
48189
|
],
|
|
48185
48190
|
"type": "object"
|
|
48186
48191
|
},
|
|
48192
|
+
"expectedMinutes": {
|
|
48193
|
+
"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.",
|
|
48194
|
+
"nullable": true,
|
|
48195
|
+
"properties": {
|
|
48196
|
+
"high": {
|
|
48197
|
+
"type": "number"
|
|
48198
|
+
},
|
|
48199
|
+
"low": {
|
|
48200
|
+
"type": "number"
|
|
48201
|
+
}
|
|
48202
|
+
},
|
|
48203
|
+
"required": [
|
|
48204
|
+
"low",
|
|
48205
|
+
"high"
|
|
48206
|
+
],
|
|
48207
|
+
"type": "object"
|
|
48208
|
+
},
|
|
48209
|
+
"featureLabels": {
|
|
48210
|
+
"description": "The data points by their plain labels, in the same order as `features`.",
|
|
48211
|
+
"items": {
|
|
48212
|
+
"type": "string"
|
|
48213
|
+
},
|
|
48214
|
+
"type": "array"
|
|
48215
|
+
},
|
|
48187
48216
|
"features": {
|
|
48188
48217
|
"items": {
|
|
48189
48218
|
"$ref": "#/components/schemas/StudioModelDataPoint"
|
|
@@ -48209,6 +48238,10 @@
|
|
|
48209
48238
|
"nullable": true,
|
|
48210
48239
|
"type": "string"
|
|
48211
48240
|
},
|
|
48241
|
+
"outcomeLabel": {
|
|
48242
|
+
"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.",
|
|
48243
|
+
"type": "string"
|
|
48244
|
+
},
|
|
48212
48245
|
"outcomeSource": {
|
|
48213
48246
|
"additionalProperties": false,
|
|
48214
48247
|
"nullable": true,
|
|
@@ -48263,15 +48296,68 @@
|
|
|
48263
48296
|
"population": {
|
|
48264
48297
|
"$ref": "#/components/schemas/StudioModelPopulation"
|
|
48265
48298
|
},
|
|
48299
|
+
"populationLabel": {
|
|
48300
|
+
"description": "Who is scored, in plain words.",
|
|
48301
|
+
"type": "string"
|
|
48302
|
+
},
|
|
48266
48303
|
"progress": {
|
|
48267
|
-
"description": "
|
|
48304
|
+
"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
48305
|
"nullable": true,
|
|
48269
48306
|
"properties": {
|
|
48307
|
+
"elapsedSeconds": {
|
|
48308
|
+
"description": "Seconds since the run was started.",
|
|
48309
|
+
"type": "number"
|
|
48310
|
+
},
|
|
48311
|
+
"expectedMinutes": {
|
|
48312
|
+
"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\").",
|
|
48313
|
+
"nullable": true,
|
|
48314
|
+
"properties": {
|
|
48315
|
+
"high": {
|
|
48316
|
+
"type": "number"
|
|
48317
|
+
},
|
|
48318
|
+
"low": {
|
|
48319
|
+
"type": "number"
|
|
48320
|
+
}
|
|
48321
|
+
},
|
|
48322
|
+
"required": [
|
|
48323
|
+
"low",
|
|
48324
|
+
"high"
|
|
48325
|
+
],
|
|
48326
|
+
"type": "object"
|
|
48327
|
+
},
|
|
48328
|
+
"note": {
|
|
48329
|
+
"description": "Says that the times are estimates, or that the run is past its estimate and still going. Pass it on.",
|
|
48330
|
+
"type": "string"
|
|
48331
|
+
},
|
|
48332
|
+
"remainingMinutes": {
|
|
48333
|
+
"description": "What is left of the estimate. Null when there is no estimate for this run.",
|
|
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
|
+
},
|
|
48270
48349
|
"stage": {
|
|
48350
|
+
"description": "The step the run is on, numbered: \"step 3 of 6: building past cases to learn from\". Steps only ever go up.",
|
|
48271
48351
|
"type": "string"
|
|
48272
48352
|
},
|
|
48273
48353
|
"startedAt": {
|
|
48274
48354
|
"type": "string"
|
|
48355
|
+
},
|
|
48356
|
+
"step": {
|
|
48357
|
+
"type": "number"
|
|
48358
|
+
},
|
|
48359
|
+
"steps": {
|
|
48360
|
+
"type": "number"
|
|
48275
48361
|
}
|
|
48276
48362
|
},
|
|
48277
48363
|
"required": [
|
|
@@ -48284,6 +48370,10 @@
|
|
|
48284
48370
|
"description": "A refresh in progress, or why the last one produced nothing (the earlier scores stay).",
|
|
48285
48371
|
"nullable": true,
|
|
48286
48372
|
"properties": {
|
|
48373
|
+
"elapsedSeconds": {
|
|
48374
|
+
"description": "While it runs: seconds since it started. `expectedMinutes` on the model says how long a refresh takes.",
|
|
48375
|
+
"type": "number"
|
|
48376
|
+
},
|
|
48287
48377
|
"error": {
|
|
48288
48378
|
"properties": {
|
|
48289
48379
|
"code": {
|
|
@@ -48902,6 +48992,104 @@
|
|
|
48902
48992
|
},
|
|
48903
48993
|
"type": "array"
|
|
48904
48994
|
},
|
|
48995
|
+
"trainingTime": {
|
|
48996
|
+
"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.",
|
|
48997
|
+
"properties": {
|
|
48998
|
+
"basis": {
|
|
48999
|
+
"type": "string"
|
|
49000
|
+
},
|
|
49001
|
+
"note": {
|
|
49002
|
+
"type": "string"
|
|
49003
|
+
},
|
|
49004
|
+
"sizes": {
|
|
49005
|
+
"items": {
|
|
49006
|
+
"properties": {
|
|
49007
|
+
"expectedMinutes": {
|
|
49008
|
+
"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\").",
|
|
49009
|
+
"properties": {
|
|
49010
|
+
"high": {
|
|
49011
|
+
"type": "number"
|
|
49012
|
+
},
|
|
49013
|
+
"low": {
|
|
49014
|
+
"type": "number"
|
|
49015
|
+
}
|
|
49016
|
+
},
|
|
49017
|
+
"required": [
|
|
49018
|
+
"low",
|
|
49019
|
+
"high"
|
|
49020
|
+
],
|
|
49021
|
+
"type": "object"
|
|
49022
|
+
},
|
|
49023
|
+
"label": {
|
|
49024
|
+
"type": "string"
|
|
49025
|
+
},
|
|
49026
|
+
"size": {
|
|
49027
|
+
"enum": [
|
|
49028
|
+
"small",
|
|
49029
|
+
"medium",
|
|
49030
|
+
"large"
|
|
49031
|
+
],
|
|
49032
|
+
"type": "string"
|
|
49033
|
+
}
|
|
49034
|
+
},
|
|
49035
|
+
"required": [
|
|
49036
|
+
"size",
|
|
49037
|
+
"label",
|
|
49038
|
+
"expectedMinutes"
|
|
49039
|
+
],
|
|
49040
|
+
"type": "object"
|
|
49041
|
+
},
|
|
49042
|
+
"type": "array"
|
|
49043
|
+
},
|
|
49044
|
+
"states": {
|
|
49045
|
+
"items": {
|
|
49046
|
+
"properties": {
|
|
49047
|
+
"expectedMinutes": {
|
|
49048
|
+
"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\").",
|
|
49049
|
+
"properties": {
|
|
49050
|
+
"high": {
|
|
49051
|
+
"type": "number"
|
|
49052
|
+
},
|
|
49053
|
+
"low": {
|
|
49054
|
+
"type": "number"
|
|
49055
|
+
}
|
|
49056
|
+
},
|
|
49057
|
+
"required": [
|
|
49058
|
+
"low",
|
|
49059
|
+
"high"
|
|
49060
|
+
],
|
|
49061
|
+
"type": "object"
|
|
49062
|
+
},
|
|
49063
|
+
"size": {
|
|
49064
|
+
"enum": [
|
|
49065
|
+
"small",
|
|
49066
|
+
"medium",
|
|
49067
|
+
"large"
|
|
49068
|
+
],
|
|
49069
|
+
"type": "string"
|
|
49070
|
+
},
|
|
49071
|
+
"state": {
|
|
49072
|
+
"type": "string"
|
|
49073
|
+
}
|
|
49074
|
+
},
|
|
49075
|
+
"required": [
|
|
49076
|
+
"state",
|
|
49077
|
+
"size",
|
|
49078
|
+
"expectedMinutes"
|
|
49079
|
+
],
|
|
49080
|
+
"type": "object"
|
|
49081
|
+
},
|
|
49082
|
+
"type": "array"
|
|
49083
|
+
}
|
|
49084
|
+
},
|
|
49085
|
+
"required": [
|
|
49086
|
+
"note",
|
|
49087
|
+
"basis",
|
|
49088
|
+
"sizes",
|
|
49089
|
+
"states"
|
|
49090
|
+
],
|
|
49091
|
+
"type": "object"
|
|
49092
|
+
},
|
|
48905
49093
|
"uploadedOutcomes": {
|
|
48906
49094
|
"properties": {
|
|
48907
49095
|
"keyKinds": {
|
|
@@ -50486,7 +50674,7 @@
|
|
|
50486
50674
|
"info": {
|
|
50487
50675
|
"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
50676
|
"title": "ModelMatch API",
|
|
50489
|
-
"version": "3.161.
|
|
50677
|
+
"version": "3.161.1"
|
|
50490
50678
|
},
|
|
50491
50679
|
"openapi": "3.1.0",
|
|
50492
50680
|
"paths": {
|
|
@@ -90028,7 +90216,7 @@
|
|
|
90028
90216
|
},
|
|
90029
90217
|
"/v1/studio/models": {
|
|
90030
90218
|
"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.",
|
|
90219
|
+
"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
90220
|
"operationId": "listStudioModels",
|
|
90033
90221
|
"responses": {
|
|
90034
90222
|
"200": {
|
|
@@ -90128,7 +90316,7 @@
|
|
|
90128
90316
|
]
|
|
90129
90317
|
},
|
|
90130
90318
|
"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
|
|
90319
|
+
"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
90320
|
"operationId": "createStudioModel",
|
|
90133
90321
|
"requestBody": {
|
|
90134
90322
|
"content": {
|
|
@@ -90240,7 +90428,7 @@
|
|
|
90240
90428
|
},
|
|
90241
90429
|
"/v1/studio/models/options": {
|
|
90242
90430
|
"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,
|
|
90431
|
+
"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
90432
|
"operationId": "getStudioModelOptions",
|
|
90245
90433
|
"responses": {
|
|
90246
90434
|
"200": {
|
|
@@ -90456,7 +90644,7 @@
|
|
|
90456
90644
|
]
|
|
90457
90645
|
},
|
|
90458
90646
|
"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
|
|
90647
|
+
"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
90648
|
"operationId": "getStudioModel",
|
|
90461
90649
|
"parameters": [
|
|
90462
90650
|
{
|
|
@@ -90582,7 +90770,7 @@
|
|
|
90582
90770
|
},
|
|
90583
90771
|
"/v1/studio/models/{name}/refresh": {
|
|
90584
90772
|
"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.",
|
|
90773
|
+
"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
90774
|
"operationId": "refreshStudioModel",
|
|
90587
90775
|
"parameters": [
|
|
90588
90776
|
{
|