@model-match/api 3.83.3 → 3.85.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/openapi.json CHANGED
@@ -47588,7 +47588,7 @@
47588
47588
  "type": "string"
47589
47589
  },
47590
47590
  "on": {
47591
- "description": "`rows_added` — a key that was not in the previous run. `rows_removed` — a key the previous run had and this one does not. `threshold` — `column` `op` `value` holds for a key now and did not in the previous run.",
47591
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
47592
47592
  "enum": [
47593
47593
  "rows_added",
47594
47594
  "rows_removed",
@@ -47618,6 +47618,18 @@
47618
47618
  },
47619
47619
  "type": "array"
47620
47620
  },
47621
+ "copiedFrom": {
47622
+ "description": "When it was saved as a copy: the job (`job`) or the ModelMatch table (`published`) it came from.",
47623
+ "properties": {
47624
+ "job": {
47625
+ "type": "string"
47626
+ },
47627
+ "published": {
47628
+ "type": "string"
47629
+ }
47630
+ },
47631
+ "type": "object"
47632
+ },
47621
47633
  "createdAt": {
47622
47634
  "type": "string"
47623
47635
  },
@@ -47764,7 +47776,7 @@
47764
47776
  "type": "string"
47765
47777
  },
47766
47778
  "on": {
47767
- "description": "`rows_added` — a key that was not in the previous run. `rows_removed` — a key the previous run had and this one does not. `threshold` — `column` `op` `value` holds for a key now and did not in the previous run.",
47779
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
47768
47780
  "enum": [
47769
47781
  "rows_added",
47770
47782
  "rows_removed",
@@ -48011,7 +48023,7 @@
48011
48023
  "additionalProperties": false,
48012
48024
  "properties": {
48013
48025
  "alerts": {
48014
- "description": "Changes between one run and the next worth flagging. A match is recorded on the run and, on a scheduled run, emailed to the job's creator.",
48026
+ "description": "Changes between runs to flag; on a scheduled run a match is emailed to the creator.",
48015
48027
  "items": {
48016
48028
  "properties": {
48017
48029
  "column": {
@@ -48019,7 +48031,7 @@
48019
48031
  "type": "string"
48020
48032
  },
48021
48033
  "on": {
48022
- "description": "`rows_added` — a key that was not in the previous run. `rows_removed` — a key the previous run had and this one does not. `threshold` — `column` `op` `value` holds for a key now and did not in the previous run.",
48034
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
48023
48035
  "enum": [
48024
48036
  "rows_added",
48025
48037
  "rows_removed",
@@ -48050,13 +48062,21 @@
48050
48062
  "maxItems": 5,
48051
48063
  "type": "array"
48052
48064
  },
48065
+ "copyFrom": {
48066
+ "description": "Copy one of your jobs by name; fields given override it.",
48067
+ "type": "string"
48068
+ },
48069
+ "copyFromPublished": {
48070
+ "description": "Or copy a ModelMatch `mm_*` table's job.",
48071
+ "type": "string"
48072
+ },
48053
48073
  "description": {
48054
48074
  "description": "What the job is for. Shown in the catalog.",
48055
48075
  "maxLength": 500,
48056
48076
  "type": "string"
48057
48077
  },
48058
48078
  "keys": {
48059
- "description": "The column or columns that identify one row of the result (for example `companyNmlsId`). Needed for 'what changed' and for alerts; one row per key.",
48079
+ "description": "Columns identifying one row (e.g. `companyNmlsId`); needed for 'what changed' and alerts.",
48060
48080
  "items": {
48061
48081
  "minLength": 1,
48062
48082
  "type": "string"
@@ -48092,16 +48112,14 @@
48092
48112
  "type": "string"
48093
48113
  },
48094
48114
  "sql": {
48095
- "description": "One read-only SELECT, checked when the job is saved. It may use `$as_of`, the date of the run (a DATE), so the same job can be re-run for any day.",
48115
+ "description": "One read-only SELECT, checked when the job is saved. It may use `$as_of`, the date of the run (a DATE), so the same job can be re-run for any day. Required unless copying.",
48096
48116
  "maxLength": 20000,
48097
48117
  "minLength": 1,
48098
48118
  "type": "string"
48099
48119
  }
48100
48120
  },
48101
48121
  "required": [
48102
- "name",
48103
- "sql",
48104
- "schedule"
48122
+ "name"
48105
48123
  ],
48106
48124
  "type": "object"
48107
48125
  },
@@ -48153,7 +48171,7 @@
48153
48171
  "type": "string"
48154
48172
  },
48155
48173
  "on": {
48156
- "description": "`rows_added` — a key that was not in the previous run. `rows_removed` — a key the previous run had and this one does not. `threshold` — `column` `op` `value` holds for a key now and did not in the previous run.",
48174
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
48157
48175
  "enum": [
48158
48176
  "rows_added",
48159
48177
  "rows_removed",
@@ -48464,6 +48482,18 @@
48464
48482
  "nullable": true,
48465
48483
  "type": "string"
48466
48484
  },
48485
+ "basedOnPublished": {
48486
+ "description": "The ModelMatch model this one was copied from (its table); its card compares against it.",
48487
+ "nullable": true,
48488
+ "type": "string"
48489
+ },
48490
+ "boosts": {
48491
+ "description": "The priority boosts (empty when none). When there are any, the scores table also has `priorityScore`, `priorityRank` and `priorityMultiplier`: sort by `priorityRank` for the boosted list; `score` and `rank` stay the model's own.",
48492
+ "items": {
48493
+ "$ref": "#/components/schemas/StudioModelBoost"
48494
+ },
48495
+ "type": "array"
48496
+ },
48467
48497
  "card": {
48468
48498
  "additionalProperties": {
48469
48499
  "nullable": true
@@ -48557,7 +48587,7 @@
48557
48587
  "nullable": true,
48558
48588
  "properties": {
48559
48589
  "dateColumn": {
48560
- "description": "The date of each row: the day you would have wanted the prediction (for example the day the lead came in). It must be a date column. Only what was on record before it is used to learn.",
48590
+ "description": "Each row's date (a date column): the day you would have wanted the prediction. Only earlier records are used.",
48561
48591
  "example": "lead_date",
48562
48592
  "maxLength": 100,
48563
48593
  "minLength": 1,
@@ -48567,14 +48597,14 @@
48567
48597
  "$ref": "#/components/schemas/StudioModelKey"
48568
48598
  },
48569
48599
  "labelColumn": {
48570
- "description": "The column that says what happened. Two values: won / lost, yes / no, true / false, 1 / 0.",
48600
+ "description": "What happened: two values (won/lost, yes/no, 1/0).",
48571
48601
  "example": "result",
48572
48602
  "maxLength": 100,
48573
48603
  "minLength": 1,
48574
48604
  "type": "string"
48575
48605
  },
48576
48606
  "positiveValues": {
48577
- "description": "Which values of `labelColumn` mean \"it happened\", when they are not plainly won / yes / true / 1.",
48607
+ "description": "Values of `labelColumn` that mean it happened, when not plainly won/yes/true/1.",
48578
48608
  "example": [
48579
48609
  "Closed - Funded"
48580
48610
  ],
@@ -48588,7 +48618,7 @@
48588
48618
  "type": "array"
48589
48619
  },
48590
48620
  "table": {
48591
- "description": "Your uploaded table with one row per case you know the outcome of.",
48621
+ "description": "Your uploaded table: one row per known case.",
48592
48622
  "example": "upload_my_deals",
48593
48623
  "maxLength": 100,
48594
48624
  "minLength": 1,
@@ -48984,6 +49014,15 @@
48984
49014
  ],
48985
49015
  "type": "object"
48986
49016
  },
49017
+ "recencyWeighting": {
49018
+ "description": "Favor recent past cases while learning: `moderate` (weight halves per 24 months back) or `strong` (per 12). Default `off`.",
49019
+ "enum": [
49020
+ "off",
49021
+ "moderate",
49022
+ "strong"
49023
+ ],
49024
+ "type": "string"
49025
+ },
48987
49026
  "refresh": {
48988
49027
  "description": "A refresh in progress (a re-score, or a retrain of a model that has a version: `progress` has its steps), or why the last one produced nothing (the earlier scores stay).",
48989
49028
  "nullable": true,
@@ -49024,7 +49063,7 @@
49024
49063
  "type": "object"
49025
49064
  },
49026
49065
  "schedule": {
49027
- "description": "How often the scores are refreshed with the latest data: `manual` (only when you ask), `weekly` or `monthly`.",
49066
+ "description": "How often the scores are refreshed: `manual` (when you ask), `weekly` or `monthly`.",
49028
49067
  "enum": [
49029
49068
  "manual",
49030
49069
  "weekly",
@@ -49118,19 +49157,82 @@
49118
49157
  ],
49119
49158
  "type": "object"
49120
49159
  },
49160
+ "StudioModelBoost": {
49161
+ "additionalProperties": false,
49162
+ "properties": {
49163
+ "multiply": {
49164
+ "maximum": 3,
49165
+ "minimum": 0.5,
49166
+ "type": "number"
49167
+ },
49168
+ "when": {
49169
+ "additionalProperties": false,
49170
+ "properties": {
49171
+ "column": {
49172
+ "type": "string"
49173
+ },
49174
+ "gte": {
49175
+ "type": "number"
49176
+ },
49177
+ "in": {
49178
+ "items": {
49179
+ "type": "string"
49180
+ },
49181
+ "type": "array"
49182
+ },
49183
+ "lte": {
49184
+ "type": "number"
49185
+ },
49186
+ "notIn": {
49187
+ "items": {
49188
+ "type": "string"
49189
+ },
49190
+ "type": "array"
49191
+ },
49192
+ "onOrAfter": {
49193
+ "type": "string"
49194
+ },
49195
+ "onOrBefore": {
49196
+ "type": "string"
49197
+ }
49198
+ },
49199
+ "required": [
49200
+ "column"
49201
+ ],
49202
+ "type": "object"
49203
+ }
49204
+ },
49205
+ "required": [
49206
+ "when",
49207
+ "multiply"
49208
+ ],
49209
+ "type": "object"
49210
+ },
49121
49211
  "StudioModelCreate": {
49122
49212
  "additionalProperties": false,
49123
49213
  "properties": {
49124
49214
  "asOf": {
49125
- "description": "Score as of this date (YYYY-MM-DD), using only records before it. Leave it out to score as of today, each time the scores are refreshed.",
49215
+ "description": "Score as of this date (YYYY-MM-DD), from records before it. Omit for today, at every refresh.",
49126
49216
  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
49127
49217
  "type": "string"
49128
49218
  },
49129
49219
  "basedOn": {
49130
- "description": "Start from another of your models: anything this request leaves out is taken from it, and the report card compares the two. The other model is left as it is.",
49220
+ "description": "Another of your models to start from: what this request omits is taken from it; the card compares the two.",
49131
49221
  "pattern": "^[a-z][a-z0-9_]{2,39}$",
49132
49222
  "type": "string"
49133
49223
  },
49224
+ "basedOnPublished": {
49225
+ "description": "Copy a ModelMatch model (`mm_model_*` table); fields given override it.",
49226
+ "type": "string"
49227
+ },
49228
+ "boosts": {
49229
+ "description": "After the model: matching homes' score × `multiply` is `priorityScore`; `score` and the card are unchanged. Text: `in`/`notIn`; numbers: `gte`/`lte`; dates: `onOrAfter`/`onOrBefore`.",
49230
+ "items": {
49231
+ "$ref": "#/components/schemas/StudioModelBoost"
49232
+ },
49233
+ "maxItems": 5,
49234
+ "type": "array"
49235
+ },
49134
49236
  "description": {
49135
49237
  "description": "What the model is for, in a sentence.",
49136
49238
  "maxLength": 500,
@@ -49157,7 +49259,7 @@
49157
49259
  "type": "string"
49158
49260
  },
49159
49261
  "outcome": {
49160
- "description": "What to predict: an outcome id from getStudioModelOptions. Leave it out when training on your own outcomes (`outcomeSource`).",
49262
+ "description": "What to predict: an outcome id from getStudioModelOptions. Omit with `outcomeSource`.",
49161
49263
  "example": "new_mortgage",
49162
49264
  "maxLength": 100,
49163
49265
  "minLength": 1,
@@ -49169,12 +49271,21 @@
49169
49271
  "population": {
49170
49272
  "$ref": "#/components/schemas/StudioModelPopulation"
49171
49273
  },
49274
+ "recencyWeighting": {
49275
+ "description": "Favor recent past cases while learning: `moderate` (weight halves per 24 months back) or `strong` (per 12). Default `off`.",
49276
+ "enum": [
49277
+ "off",
49278
+ "moderate",
49279
+ "strong"
49280
+ ],
49281
+ "type": "string"
49282
+ },
49172
49283
  "replace": {
49173
- "description": "Train a new version of the existing model of this name, for example with different data points. The new report card says what changed; the old scores are taken down while it trains.",
49284
+ "description": "A new version of the model of this name (say, other picks): the card says what changed; the old scores come down while it trains.",
49174
49285
  "type": "boolean"
49175
49286
  },
49176
49287
  "schedule": {
49177
- "description": "How often the scores are refreshed with the latest data: `manual` (only when you ask), `weekly` or `monthly`.",
49288
+ "description": "How often the scores are refreshed: `manual` (when you ask), `weekly` or `monthly`.",
49178
49289
  "enum": [
49179
49290
  "manual",
49180
49291
  "weekly",
@@ -49244,12 +49355,20 @@
49244
49355
  "additionalProperties": false,
49245
49356
  "properties": {
49246
49357
  "column": {
49247
- "description": "For `upload`: the column. It must have been known on each row's date. The outcome column, anything computed from it, and anything recorded after the outcome are refused.",
49358
+ "description": "For `upload`: a column known on each row's date, not recorded after the outcome.",
49248
49359
  "example": "lead_source",
49249
49360
  "maxLength": 100,
49250
49361
  "minLength": 1,
49251
49362
  "type": "string"
49252
49363
  },
49364
+ "direction": {
49365
+ "description": "`increasing`: a higher value never lowers the score; `decreasing`: never raises it. Numbers, dates only.",
49366
+ "enum": [
49367
+ "increasing",
49368
+ "decreasing"
49369
+ ],
49370
+ "type": "string"
49371
+ },
49253
49372
  "id": {
49254
49373
  "description": "For `market`: the data point's id.",
49255
49374
  "example": "rate_incentive",
@@ -49258,13 +49377,13 @@
49258
49377
  "type": "string"
49259
49378
  },
49260
49379
  "knownAt": {
49261
- "description": "For `upload`, optional: a date column of the same row saying when this value became known. A value known after the row's date is ignored for that row.",
49380
+ "description": "For `upload`, optional: a date column saying when the value became known.",
49262
49381
  "maxLength": 100,
49263
49382
  "minLength": 1,
49264
49383
  "type": "string"
49265
49384
  },
49266
49385
  "source": {
49267
- "description": "`market` — one of the data points getStudioModelOptions lists (give `id`). `upload` — a column of your own uploaded outcomes table (give `table` and `column`).",
49386
+ "description": "`market` (give `id`) or `upload` (a column of your outcomes table: `table`, `column`).",
49268
49387
  "enum": [
49269
49388
  "market",
49270
49389
  "upload"
@@ -49272,7 +49391,7 @@
49272
49391
  "type": "string"
49273
49392
  },
49274
49393
  "table": {
49275
- "description": "For `upload`: the uploaded table, which must be the one the outcomes come from.",
49394
+ "description": "For `upload`: the outcomes table.",
49276
49395
  "example": "upload_my_deals",
49277
49396
  "maxLength": 100,
49278
49397
  "minLength": 1,
@@ -49313,12 +49432,12 @@
49313
49432
  "StudioModelError": {
49314
49433
  "properties": {
49315
49434
  "code": {
49316
- "description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`. The model: `model_not_found`, `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Access: `entitlement_missing` (the model uses neighborhood data points your organization has not enabled; `details.dataPoints`), `entitlement_unavailable`. Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
49435
+ "description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Access: `entitlement_missing` (the model uses neighborhood data points, or a boost or direction on where a home is, that your organization has not enabled; `details.dataPoints`, `details.boostColumns`, `details.directionRules`), `entitlement_unavailable`. Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
49317
49436
  "example": "match_rate_too_low",
49318
49437
  "type": "string"
49319
49438
  },
49320
49439
  "details": {
49321
- "description": "What the error is about, when known: the `table`, `column` or `dataPoint`, `suggestions`, and the numbers behind a refusal (`examples`, `positives`, `minimum`, `rows`, `matched`, `matchRate`, `limit`, `retryAfterSeconds`); for `entitlement_missing`, the neighborhood `dataPoints` the model uses and the `entitlementKey` to enable.",
49440
+ "description": "What the error is about, when known: the `table`, `column` or `dataPoint`, `suggestions`, and the numbers behind a refusal (`examples`, `positives`, `minimum`, `rows`, `matched`, `matchRate`, `limit`, `retryAfterSeconds`); for `entitlement_missing`, the neighborhood `dataPoints`, `boostColumns` and `directionRules` the model uses and the `entitlementKey` to enable.",
49322
49441
  "properties": {
49323
49442
  "availableTables": {
49324
49443
  "items": {
@@ -49326,6 +49445,12 @@
49326
49445
  },
49327
49446
  "type": "array"
49328
49447
  },
49448
+ "boostColumns": {
49449
+ "items": {
49450
+ "type": "string"
49451
+ },
49452
+ "type": "array"
49453
+ },
49329
49454
  "column": {
49330
49455
  "type": "string"
49331
49456
  },
@@ -49338,6 +49463,12 @@
49338
49463
  },
49339
49464
  "type": "array"
49340
49465
  },
49466
+ "directionRules": {
49467
+ "items": {
49468
+ "type": "string"
49469
+ },
49470
+ "type": "array"
49471
+ },
49341
49472
  "entitlementKey": {
49342
49473
  "type": "string"
49343
49474
  },
@@ -49412,7 +49543,7 @@
49412
49543
  "type": "array"
49413
49544
  },
49414
49545
  "kind": {
49415
- "description": "How rows are matched to homes: `property_address` (two columns: `address_key`, the cleaned address the upload added, then the ZIP code column), `property_id` or `loan_id` (one column holding that market id).",
49546
+ "description": "`property_address` (`address_key`, ZIP), `property_id` or `loan_id`.",
49416
49547
  "example": "property_address",
49417
49548
  "maxLength": 40,
49418
49549
  "minLength": 1,
@@ -49565,6 +49696,10 @@
49565
49696
  "dataPoints": {
49566
49697
  "items": {
49567
49698
  "properties": {
49699
+ "acceptsDirection": {
49700
+ "description": "True when a direction rule may be set on it (numbers).",
49701
+ "type": "boolean"
49702
+ },
49568
49703
  "description": {
49569
49704
  "type": "string"
49570
49705
  },
@@ -49772,6 +49907,158 @@
49772
49907
  "keyKinds"
49773
49908
  ],
49774
49909
  "type": "object"
49910
+ },
49911
+ "weighting": {
49912
+ "description": "How a model can be weighted: `recentHistory` settings, `directions` (on data points with `acceptsDirection`), and the scores-table `columns` a priority boost may test. A boost on a column with `needsFairLendingReview`, or a direction on one of your own columns whose name is one of `geographicColumnWords`, needs neighborhood data enabled, like those data points.",
49913
+ "properties": {
49914
+ "boosts": {
49915
+ "properties": {
49916
+ "columns": {
49917
+ "items": {
49918
+ "properties": {
49919
+ "column": {
49920
+ "type": "string"
49921
+ },
49922
+ "label": {
49923
+ "type": "string"
49924
+ },
49925
+ "needsFairLendingReview": {
49926
+ "type": "boolean"
49927
+ },
49928
+ "operators": {
49929
+ "items": {
49930
+ "type": "string"
49931
+ },
49932
+ "type": "array"
49933
+ },
49934
+ "type": {
49935
+ "type": "string"
49936
+ }
49937
+ },
49938
+ "required": [
49939
+ "column",
49940
+ "label",
49941
+ "type",
49942
+ "needsFairLendingReview",
49943
+ "operators"
49944
+ ],
49945
+ "type": "object"
49946
+ },
49947
+ "type": "array"
49948
+ },
49949
+ "description": {
49950
+ "type": "string"
49951
+ },
49952
+ "maxBoostValues": {
49953
+ "type": "number"
49954
+ },
49955
+ "maxBoosts": {
49956
+ "type": "number"
49957
+ },
49958
+ "maxMultiply": {
49959
+ "type": "number"
49960
+ },
49961
+ "minMultiply": {
49962
+ "type": "number"
49963
+ }
49964
+ },
49965
+ "required": [
49966
+ "description",
49967
+ "columns",
49968
+ "maxBoosts",
49969
+ "minMultiply",
49970
+ "maxMultiply",
49971
+ "maxBoostValues"
49972
+ ],
49973
+ "type": "object"
49974
+ },
49975
+ "directions": {
49976
+ "properties": {
49977
+ "description": {
49978
+ "type": "string"
49979
+ },
49980
+ "values": {
49981
+ "items": {
49982
+ "properties": {
49983
+ "description": {
49984
+ "type": "string"
49985
+ },
49986
+ "id": {
49987
+ "type": "string"
49988
+ },
49989
+ "label": {
49990
+ "type": "string"
49991
+ }
49992
+ },
49993
+ "required": [
49994
+ "id",
49995
+ "label",
49996
+ "description"
49997
+ ],
49998
+ "type": "object"
49999
+ },
50000
+ "type": "array"
50001
+ }
50002
+ },
50003
+ "required": [
50004
+ "description",
50005
+ "values"
50006
+ ],
50007
+ "type": "object"
50008
+ },
50009
+ "geographicColumnWords": {
50010
+ "items": {
50011
+ "type": "string"
50012
+ },
50013
+ "type": "array"
50014
+ },
50015
+ "recentHistory": {
50016
+ "properties": {
50017
+ "default": {
50018
+ "type": "string"
50019
+ },
50020
+ "description": {
50021
+ "type": "string"
50022
+ },
50023
+ "settings": {
50024
+ "items": {
50025
+ "properties": {
50026
+ "halfLifeMonths": {
50027
+ "nullable": true,
50028
+ "type": "number"
50029
+ },
50030
+ "id": {
50031
+ "type": "string"
50032
+ },
50033
+ "label": {
50034
+ "type": "string"
50035
+ }
50036
+ },
50037
+ "required": [
50038
+ "id",
50039
+ "label",
50040
+ "halfLifeMonths"
50041
+ ],
50042
+ "type": "object"
50043
+ },
50044
+ "type": "array"
50045
+ }
50046
+ },
50047
+ "required": [
50048
+ "description",
50049
+ "settings",
50050
+ "default"
50051
+ ],
50052
+ "type": "object"
50053
+ }
50054
+ },
50055
+ "required": [
50056
+ "recentHistory",
50057
+ "directions",
50058
+ "boosts",
50059
+ "geographicColumnWords"
50060
+ ],
50061
+ "type": "object"
49775
50062
  }
49776
50063
  },
49777
50064
  "required": [
@@ -49824,7 +50111,7 @@
49824
50111
  "additionalProperties": false,
49825
50112
  "properties": {
49826
50113
  "dateColumn": {
49827
- "description": "The date of each row: the day you would have wanted the prediction (for example the day the lead came in). It must be a date column. Only what was on record before it is used to learn.",
50114
+ "description": "Each row's date (a date column): the day you would have wanted the prediction. Only earlier records are used.",
49828
50115
  "example": "lead_date",
49829
50116
  "maxLength": 100,
49830
50117
  "minLength": 1,
@@ -49834,14 +50121,14 @@
49834
50121
  "$ref": "#/components/schemas/StudioModelKey"
49835
50122
  },
49836
50123
  "labelColumn": {
49837
- "description": "The column that says what happened. Two values: won / lost, yes / no, true / false, 1 / 0.",
50124
+ "description": "What happened: two values (won/lost, yes/no, 1/0).",
49838
50125
  "example": "result",
49839
50126
  "maxLength": 100,
49840
50127
  "minLength": 1,
49841
50128
  "type": "string"
49842
50129
  },
49843
50130
  "positiveValues": {
49844
- "description": "Which values of `labelColumn` mean \"it happened\", when they are not plainly won / yes / true / 1.",
50131
+ "description": "Values of `labelColumn` that mean it happened, when not plainly won/yes/true/1.",
49845
50132
  "example": [
49846
50133
  "Closed - Funded"
49847
50134
  ],
@@ -49855,7 +50142,7 @@
49855
50142
  "type": "array"
49856
50143
  },
49857
50144
  "table": {
49858
- "description": "Your uploaded table with one row per case you know the outcome of.",
50145
+ "description": "Your uploaded table: one row per known case.",
49859
50146
  "example": "upload_my_deals",
49860
50147
  "maxLength": 100,
49861
50148
  "minLength": 1,
@@ -49909,7 +50196,7 @@
49909
50196
  "$ref": "#/components/schemas/StudioModelKey"
49910
50197
  },
49911
50198
  "kind": {
49912
- "description": "Who gets scored. `homes` — every home in the state with a recent mortgage. `company_book` — the homes one mortgage company has financed (give `companyNmlsId`). `uploaded_list` — the homes in one of your uploaded tables (give `table` and `key`).",
50199
+ "description": "Who is scored: `homes` (recent mortgage, in the state), `company_book` (`companyNmlsId`) or `uploaded_list` (`table`, `key`).",
49913
50200
  "enum": [
49914
50201
  "homes",
49915
50202
  "company_book",
@@ -50286,6 +50573,13 @@
50286
50573
  "description": "The table its scores are in, the same for every organization. Query it with Studio.",
50287
50574
  "example": "mm_model_refi_watch",
50288
50575
  "type": "string"
50576
+ },
50577
+ "weighting": {
50578
+ "description": "How it was weighted — recent history, direction rules, priority boosts — one sentence each; empty when it was not. A copy (`basedOnPublished` on createStudioModel) starts with the same settings.",
50579
+ "items": {
50580
+ "type": "string"
50581
+ },
50582
+ "type": "array"
50289
50583
  }
50290
50584
  },
50291
50585
  "required": [
@@ -50301,6 +50595,7 @@
50301
50595
  "learnedFrom",
50302
50596
  "metrics",
50303
50597
  "dataPoints",
50598
+ "weighting",
50304
50599
  "caveats"
50305
50600
  ],
50306
50601
  "type": "object"
@@ -51682,7 +51977,7 @@
51682
51977
  "info": {
51683
51978
  "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.",
51684
51979
  "title": "ModelMatch API",
51685
- "version": "3.167.3"
51980
+ "version": "3.169.0"
51686
51981
  },
51687
51982
  "openapi": "3.1.0",
51688
51983
  "paths": {
@@ -90897,7 +91192,7 @@
90897
91192
  ]
90898
91193
  },
90899
91194
  "post": {
90900
- "description": "Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts.",
91195
+ "description": "Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts.",
90901
91196
  "operationId": "createStudioJob",
90902
91197
  "requestBody": {
90903
91198
  "content": {
@@ -91530,7 +91825,7 @@
91530
91825
  }
91531
91826
  }
91532
91827
  },
91533
- "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91828
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91534
91829
  },
91535
91830
  "404": {
91536
91831
  "content": {
@@ -91540,7 +91835,7 @@
91540
91835
  }
91541
91836
  }
91542
91837
  },
91543
- "description": "`model_not_found` — your organization has no model of that name."
91838
+ "description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
91544
91839
  },
91545
91840
  "409": {
91546
91841
  "content": {
@@ -91589,7 +91884,7 @@
91589
91884
  ]
91590
91885
  },
91591
91886
  "post": {
91592
- "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. Data points marked `needsFairLendingReview` describe the neighborhood and need neighborhood data enabled for the organization (`neighborhoodDataAllowed` on getStudioModelOptions): without it a model that uses them — including one that leaves `features` out, which means every data point — is refused with `403 entitlement_missing`, naming them in `details.dataPoints`; tell the person to ask their ModelMatch admin, or pick other data points. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). An organization can have a few models running at once (3 by default; past that, `409 model_training_in_progress` says how many are running and the limit), and a model runs once at a time; 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.",
91887
+ "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. Data points marked `needsFairLendingReview` describe the neighborhood and need neighborhood data enabled for the organization (`neighborhoodDataAllowed` on getStudioModelOptions): without it a model that uses them — including one that leaves `features` out, which means every data point — is refused with `403 entitlement_missing`, naming them in `details.dataPoints`; so is a priority boost on ZIP code or city, or a direction rule on a place (`details.boostColumns`, `details.directionRules`); tell the person to ask their ModelMatch admin, or pick other data points. `basedOnPublished` starts from a model ModelMatch publishes (its `mm_model_*` table): its outcome, data points and weighting are copied into your organization as your own model — anything this request gives overrides them — and trained on your scope; its report card compares with the published original. Neighborhood data points, boosts or directions it carries need neighborhood data enabled like your own (or override `features` / `boosts` to leave them out). Weighting is optional: `recencyWeighting` counts recent past cases more while learning (testing stays unweighted), a `direction` on a number data point holds the model to it, and `boosts` add `priorityScore` and `priorityRank` to the scores table after the model; the report card is about `score`, never the boosted order. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). An organization can have a few models running at once (3 by default; past that, `409 model_training_in_progress` says how many are running and the limit), and a model runs once at a time; 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.",
91593
91888
  "operationId": "createStudioModel",
91594
91889
  "requestBody": {
91595
91890
  "content": {
@@ -91640,7 +91935,7 @@
91640
91935
  }
91641
91936
  }
91642
91937
  },
91643
- "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91938
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91644
91939
  },
91645
91940
  "404": {
91646
91941
  "content": {
@@ -91650,7 +91945,7 @@
91650
91945
  }
91651
91946
  }
91652
91947
  },
91653
- "description": "`model_not_found` — your organization has no model of that name."
91948
+ "description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
91654
91949
  },
91655
91950
  "409": {
91656
91951
  "content": {
@@ -91752,7 +92047,7 @@
91752
92047
  }
91753
92048
  }
91754
92049
  },
91755
- "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92050
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91756
92051
  },
91757
92052
  "404": {
91758
92053
  "content": {
@@ -91762,7 +92057,7 @@
91762
92057
  }
91763
92058
  }
91764
92059
  },
91765
- "description": "`model_not_found` — your organization has no model of that name."
92060
+ "description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
91766
92061
  },
91767
92062
  "409": {
91768
92063
  "content": {
@@ -91964,7 +92259,7 @@
91964
92259
  }
91965
92260
  }
91966
92261
  },
91967
- "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92262
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
91968
92263
  },
91969
92264
  "404": {
91970
92265
  "content": {
@@ -91974,7 +92269,7 @@
91974
92269
  }
91975
92270
  }
91976
92271
  },
91977
- "description": "`model_not_found` — your organization has no model of that name."
92272
+ "description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
91978
92273
  },
91979
92274
  "409": {
91980
92275
  "content": {
@@ -92088,7 +92383,7 @@
92088
92383
  }
92089
92384
  }
92090
92385
  },
92091
- "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92386
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92092
92387
  },
92093
92388
  "404": {
92094
92389
  "content": {
@@ -92098,7 +92393,7 @@
92098
92393
  }
92099
92394
  }
92100
92395
  },
92101
- "description": "`model_not_found` — your organization has no model of that name."
92396
+ "description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
92102
92397
  },
92103
92398
  "409": {
92104
92399
  "content": {
@@ -92224,7 +92519,7 @@
92224
92519
  }
92225
92520
  }
92226
92521
  },
92227
- "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave those data points out. `details.dataPoints` names them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92522
+ "description": "`no_organization` — models belong to an organization; select one and try again. `entitlement_missing` (creating or retraining a model) — the model uses neighborhood data points, or a priority boost or direction rule on where a home is (ZIP code, city, county…), which need a fair-lending review: ask your ModelMatch admin to enable neighborhood data, or leave them out. `details.dataPoints`, `details.boostColumns` and `details.directionRules` name them and `details.entitlementKey` what to enable. Refreshing the scores of an existing model is not affected."
92228
92523
  },
92229
92524
  "404": {
92230
92525
  "content": {
@@ -92234,7 +92529,7 @@
92234
92529
  }
92235
92530
  }
92236
92531
  },
92237
- "description": "`model_not_found` — your organization has no model of that name."
92532
+ "description": "`model_not_found` — your organization has no model of that name. `published_model_not_found` — `basedOnPublished` names no model ModelMatch publishes."
92238
92533
  },
92239
92534
  "409": {
92240
92535
  "content": {