@model-match/api 3.83.2 → 3.84.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 +13 -0
- package/dist/{index-B26eL8Hv.d.mts → index-CXVjN2YB.d.mts} +136 -36
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +4 -4
- package/dist/slim/index.mjs +3 -3
- package/dist/{src-qihdBsot.mjs → src-ANf3s8EA.mjs} +2 -2
- package/openapi.json +346 -36
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -48464,6 +48464,13 @@
|
|
|
48464
48464
|
"nullable": true,
|
|
48465
48465
|
"type": "string"
|
|
48466
48466
|
},
|
|
48467
|
+
"boosts": {
|
|
48468
|
+
"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.",
|
|
48469
|
+
"items": {
|
|
48470
|
+
"$ref": "#/components/schemas/StudioModelBoost"
|
|
48471
|
+
},
|
|
48472
|
+
"type": "array"
|
|
48473
|
+
},
|
|
48467
48474
|
"card": {
|
|
48468
48475
|
"additionalProperties": {
|
|
48469
48476
|
"nullable": true
|
|
@@ -48557,7 +48564,7 @@
|
|
|
48557
48564
|
"nullable": true,
|
|
48558
48565
|
"properties": {
|
|
48559
48566
|
"dateColumn": {
|
|
48560
|
-
"description": "
|
|
48567
|
+
"description": "Each row's date (a date column): the day you would have wanted the prediction. Only earlier records are used.",
|
|
48561
48568
|
"example": "lead_date",
|
|
48562
48569
|
"maxLength": 100,
|
|
48563
48570
|
"minLength": 1,
|
|
@@ -48567,14 +48574,14 @@
|
|
|
48567
48574
|
"$ref": "#/components/schemas/StudioModelKey"
|
|
48568
48575
|
},
|
|
48569
48576
|
"labelColumn": {
|
|
48570
|
-
"description": "
|
|
48577
|
+
"description": "What happened: two values (won/lost, yes/no, 1/0).",
|
|
48571
48578
|
"example": "result",
|
|
48572
48579
|
"maxLength": 100,
|
|
48573
48580
|
"minLength": 1,
|
|
48574
48581
|
"type": "string"
|
|
48575
48582
|
},
|
|
48576
48583
|
"positiveValues": {
|
|
48577
|
-
"description": "
|
|
48584
|
+
"description": "Values of `labelColumn` that mean it happened, when not plainly won/yes/true/1.",
|
|
48578
48585
|
"example": [
|
|
48579
48586
|
"Closed - Funded"
|
|
48580
48587
|
],
|
|
@@ -48588,7 +48595,7 @@
|
|
|
48588
48595
|
"type": "array"
|
|
48589
48596
|
},
|
|
48590
48597
|
"table": {
|
|
48591
|
-
"description": "Your uploaded table
|
|
48598
|
+
"description": "Your uploaded table: one row per known case.",
|
|
48592
48599
|
"example": "upload_my_deals",
|
|
48593
48600
|
"maxLength": 100,
|
|
48594
48601
|
"minLength": 1,
|
|
@@ -48984,6 +48991,15 @@
|
|
|
48984
48991
|
],
|
|
48985
48992
|
"type": "object"
|
|
48986
48993
|
},
|
|
48994
|
+
"recencyWeighting": {
|
|
48995
|
+
"description": "Favor recent past cases while learning: `moderate` (weight halves per 24 months back) or `strong` (per 12). Default `off`.",
|
|
48996
|
+
"enum": [
|
|
48997
|
+
"off",
|
|
48998
|
+
"moderate",
|
|
48999
|
+
"strong"
|
|
49000
|
+
],
|
|
49001
|
+
"type": "string"
|
|
49002
|
+
},
|
|
48987
49003
|
"refresh": {
|
|
48988
49004
|
"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
49005
|
"nullable": true,
|
|
@@ -49024,7 +49040,7 @@
|
|
|
49024
49040
|
"type": "object"
|
|
49025
49041
|
},
|
|
49026
49042
|
"schedule": {
|
|
49027
|
-
"description": "How often the scores are refreshed
|
|
49043
|
+
"description": "How often the scores are refreshed: `manual` (when you ask), `weekly` or `monthly`.",
|
|
49028
49044
|
"enum": [
|
|
49029
49045
|
"manual",
|
|
49030
49046
|
"weekly",
|
|
@@ -49118,19 +49134,78 @@
|
|
|
49118
49134
|
],
|
|
49119
49135
|
"type": "object"
|
|
49120
49136
|
},
|
|
49137
|
+
"StudioModelBoost": {
|
|
49138
|
+
"additionalProperties": false,
|
|
49139
|
+
"properties": {
|
|
49140
|
+
"multiply": {
|
|
49141
|
+
"maximum": 3,
|
|
49142
|
+
"minimum": 0.5,
|
|
49143
|
+
"type": "number"
|
|
49144
|
+
},
|
|
49145
|
+
"when": {
|
|
49146
|
+
"additionalProperties": false,
|
|
49147
|
+
"properties": {
|
|
49148
|
+
"column": {
|
|
49149
|
+
"type": "string"
|
|
49150
|
+
},
|
|
49151
|
+
"gte": {
|
|
49152
|
+
"type": "number"
|
|
49153
|
+
},
|
|
49154
|
+
"in": {
|
|
49155
|
+
"items": {
|
|
49156
|
+
"type": "string"
|
|
49157
|
+
},
|
|
49158
|
+
"type": "array"
|
|
49159
|
+
},
|
|
49160
|
+
"lte": {
|
|
49161
|
+
"type": "number"
|
|
49162
|
+
},
|
|
49163
|
+
"notIn": {
|
|
49164
|
+
"items": {
|
|
49165
|
+
"type": "string"
|
|
49166
|
+
},
|
|
49167
|
+
"type": "array"
|
|
49168
|
+
},
|
|
49169
|
+
"onOrAfter": {
|
|
49170
|
+
"type": "string"
|
|
49171
|
+
},
|
|
49172
|
+
"onOrBefore": {
|
|
49173
|
+
"type": "string"
|
|
49174
|
+
}
|
|
49175
|
+
},
|
|
49176
|
+
"required": [
|
|
49177
|
+
"column"
|
|
49178
|
+
],
|
|
49179
|
+
"type": "object"
|
|
49180
|
+
}
|
|
49181
|
+
},
|
|
49182
|
+
"required": [
|
|
49183
|
+
"when",
|
|
49184
|
+
"multiply"
|
|
49185
|
+
],
|
|
49186
|
+
"type": "object"
|
|
49187
|
+
},
|
|
49121
49188
|
"StudioModelCreate": {
|
|
49122
49189
|
"additionalProperties": false,
|
|
49123
49190
|
"properties": {
|
|
49124
49191
|
"asOf": {
|
|
49125
|
-
"description": "Score as of this date (YYYY-MM-DD),
|
|
49192
|
+
"description": "Score as of this date (YYYY-MM-DD), from records before it. Omit for today, at every refresh.",
|
|
49126
49193
|
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
49127
49194
|
"type": "string"
|
|
49128
49195
|
},
|
|
49129
49196
|
"basedOn": {
|
|
49130
|
-
"description": "
|
|
49197
|
+
"description": "Another of your models to start from: what this request omits is taken from it; the card compares the two.",
|
|
49131
49198
|
"pattern": "^[a-z][a-z0-9_]{2,39}$",
|
|
49132
49199
|
"type": "string"
|
|
49133
49200
|
},
|
|
49201
|
+
"boosts": {
|
|
49202
|
+
"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`.",
|
|
49203
|
+
"items": {
|
|
49204
|
+
"$ref": "#/components/schemas/StudioModelBoost"
|
|
49205
|
+
},
|
|
49206
|
+
"maxItems": 5,
|
|
49207
|
+
"type": "array"
|
|
49208
|
+
},
|
|
49134
49209
|
"description": {
|
|
49135
49210
|
"description": "What the model is for, in a sentence.",
|
|
49136
49211
|
"maxLength": 500,
|
|
@@ -49157,7 +49232,7 @@
|
|
|
49157
49232
|
"type": "string"
|
|
49158
49233
|
},
|
|
49159
49234
|
"outcome": {
|
|
49160
|
-
"description": "What to predict: an outcome id from getStudioModelOptions.
|
|
49235
|
+
"description": "What to predict: an outcome id from getStudioModelOptions. Omit with `outcomeSource`.",
|
|
49161
49236
|
"example": "new_mortgage",
|
|
49162
49237
|
"maxLength": 100,
|
|
49163
49238
|
"minLength": 1,
|
|
@@ -49169,12 +49244,21 @@
|
|
|
49169
49244
|
"population": {
|
|
49170
49245
|
"$ref": "#/components/schemas/StudioModelPopulation"
|
|
49171
49246
|
},
|
|
49247
|
+
"recencyWeighting": {
|
|
49248
|
+
"description": "Favor recent past cases while learning: `moderate` (weight halves per 24 months back) or `strong` (per 12). Default `off`.",
|
|
49249
|
+
"enum": [
|
|
49250
|
+
"off",
|
|
49251
|
+
"moderate",
|
|
49252
|
+
"strong"
|
|
49253
|
+
],
|
|
49254
|
+
"type": "string"
|
|
49255
|
+
},
|
|
49172
49256
|
"replace": {
|
|
49173
|
-
"description": "
|
|
49257
|
+
"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
49258
|
"type": "boolean"
|
|
49175
49259
|
},
|
|
49176
49260
|
"schedule": {
|
|
49177
|
-
"description": "How often the scores are refreshed
|
|
49261
|
+
"description": "How often the scores are refreshed: `manual` (when you ask), `weekly` or `monthly`.",
|
|
49178
49262
|
"enum": [
|
|
49179
49263
|
"manual",
|
|
49180
49264
|
"weekly",
|
|
@@ -49244,12 +49328,20 @@
|
|
|
49244
49328
|
"additionalProperties": false,
|
|
49245
49329
|
"properties": {
|
|
49246
49330
|
"column": {
|
|
49247
|
-
"description": "For `upload`:
|
|
49331
|
+
"description": "For `upload`: a column known on each row's date, not recorded after the outcome.",
|
|
49248
49332
|
"example": "lead_source",
|
|
49249
49333
|
"maxLength": 100,
|
|
49250
49334
|
"minLength": 1,
|
|
49251
49335
|
"type": "string"
|
|
49252
49336
|
},
|
|
49337
|
+
"direction": {
|
|
49338
|
+
"description": "`increasing`: a higher value never lowers the score; `decreasing`: never raises it. Numbers, dates only.",
|
|
49339
|
+
"enum": [
|
|
49340
|
+
"increasing",
|
|
49341
|
+
"decreasing"
|
|
49342
|
+
],
|
|
49343
|
+
"type": "string"
|
|
49344
|
+
},
|
|
49253
49345
|
"id": {
|
|
49254
49346
|
"description": "For `market`: the data point's id.",
|
|
49255
49347
|
"example": "rate_incentive",
|
|
@@ -49258,13 +49350,13 @@
|
|
|
49258
49350
|
"type": "string"
|
|
49259
49351
|
},
|
|
49260
49352
|
"knownAt": {
|
|
49261
|
-
"description": "For `upload`, optional: a date column
|
|
49353
|
+
"description": "For `upload`, optional: a date column saying when the value became known.",
|
|
49262
49354
|
"maxLength": 100,
|
|
49263
49355
|
"minLength": 1,
|
|
49264
49356
|
"type": "string"
|
|
49265
49357
|
},
|
|
49266
49358
|
"source": {
|
|
49267
|
-
"description": "`market`
|
|
49359
|
+
"description": "`market` (give `id`) or `upload` (a column of your outcomes table: `table`, `column`).",
|
|
49268
49360
|
"enum": [
|
|
49269
49361
|
"market",
|
|
49270
49362
|
"upload"
|
|
@@ -49272,7 +49364,7 @@
|
|
|
49272
49364
|
"type": "string"
|
|
49273
49365
|
},
|
|
49274
49366
|
"table": {
|
|
49275
|
-
"description": "For `upload`: the
|
|
49367
|
+
"description": "For `upload`: the outcomes table.",
|
|
49276
49368
|
"example": "upload_my_deals",
|
|
49277
49369
|
"maxLength": 100,
|
|
49278
49370
|
"minLength": 1,
|
|
@@ -49313,12 +49405,12 @@
|
|
|
49313
49405
|
"StudioModelError": {
|
|
49314
49406
|
"properties": {
|
|
49315
49407
|
"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`.",
|
|
49408
|
+
"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`, `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
49409
|
"example": "match_rate_too_low",
|
|
49318
49410
|
"type": "string"
|
|
49319
49411
|
},
|
|
49320
49412
|
"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.",
|
|
49413
|
+
"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
49414
|
"properties": {
|
|
49323
49415
|
"availableTables": {
|
|
49324
49416
|
"items": {
|
|
@@ -49326,6 +49418,12 @@
|
|
|
49326
49418
|
},
|
|
49327
49419
|
"type": "array"
|
|
49328
49420
|
},
|
|
49421
|
+
"boostColumns": {
|
|
49422
|
+
"items": {
|
|
49423
|
+
"type": "string"
|
|
49424
|
+
},
|
|
49425
|
+
"type": "array"
|
|
49426
|
+
},
|
|
49329
49427
|
"column": {
|
|
49330
49428
|
"type": "string"
|
|
49331
49429
|
},
|
|
@@ -49338,6 +49436,12 @@
|
|
|
49338
49436
|
},
|
|
49339
49437
|
"type": "array"
|
|
49340
49438
|
},
|
|
49439
|
+
"directionRules": {
|
|
49440
|
+
"items": {
|
|
49441
|
+
"type": "string"
|
|
49442
|
+
},
|
|
49443
|
+
"type": "array"
|
|
49444
|
+
},
|
|
49341
49445
|
"entitlementKey": {
|
|
49342
49446
|
"type": "string"
|
|
49343
49447
|
},
|
|
@@ -49412,7 +49516,7 @@
|
|
|
49412
49516
|
"type": "array"
|
|
49413
49517
|
},
|
|
49414
49518
|
"kind": {
|
|
49415
|
-
"description": "
|
|
49519
|
+
"description": "`property_address` (`address_key`, ZIP), `property_id` or `loan_id`.",
|
|
49416
49520
|
"example": "property_address",
|
|
49417
49521
|
"maxLength": 40,
|
|
49418
49522
|
"minLength": 1,
|
|
@@ -49565,6 +49669,10 @@
|
|
|
49565
49669
|
"dataPoints": {
|
|
49566
49670
|
"items": {
|
|
49567
49671
|
"properties": {
|
|
49672
|
+
"acceptsDirection": {
|
|
49673
|
+
"description": "True when a direction rule may be set on it (numbers).",
|
|
49674
|
+
"type": "boolean"
|
|
49675
|
+
},
|
|
49568
49676
|
"description": {
|
|
49569
49677
|
"type": "string"
|
|
49570
49678
|
},
|
|
@@ -49772,6 +49880,158 @@
|
|
|
49772
49880
|
"keyKinds"
|
|
49773
49881
|
],
|
|
49774
49882
|
"type": "object"
|
|
49883
|
+
},
|
|
49884
|
+
"weighting": {
|
|
49885
|
+
"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.",
|
|
49886
|
+
"properties": {
|
|
49887
|
+
"boosts": {
|
|
49888
|
+
"properties": {
|
|
49889
|
+
"columns": {
|
|
49890
|
+
"items": {
|
|
49891
|
+
"properties": {
|
|
49892
|
+
"column": {
|
|
49893
|
+
"type": "string"
|
|
49894
|
+
},
|
|
49895
|
+
"label": {
|
|
49896
|
+
"type": "string"
|
|
49897
|
+
},
|
|
49898
|
+
"needsFairLendingReview": {
|
|
49899
|
+
"type": "boolean"
|
|
49900
|
+
},
|
|
49901
|
+
"operators": {
|
|
49902
|
+
"items": {
|
|
49903
|
+
"type": "string"
|
|
49904
|
+
},
|
|
49905
|
+
"type": "array"
|
|
49906
|
+
},
|
|
49907
|
+
"type": {
|
|
49908
|
+
"type": "string"
|
|
49909
|
+
}
|
|
49910
|
+
},
|
|
49911
|
+
"required": [
|
|
49912
|
+
"column",
|
|
49913
|
+
"label",
|
|
49914
|
+
"type",
|
|
49915
|
+
"needsFairLendingReview",
|
|
49916
|
+
"operators"
|
|
49917
|
+
],
|
|
49918
|
+
"type": "object"
|
|
49919
|
+
},
|
|
49920
|
+
"type": "array"
|
|
49921
|
+
},
|
|
49922
|
+
"description": {
|
|
49923
|
+
"type": "string"
|
|
49924
|
+
},
|
|
49925
|
+
"maxBoostValues": {
|
|
49926
|
+
"type": "number"
|
|
49927
|
+
},
|
|
49928
|
+
"maxBoosts": {
|
|
49929
|
+
"type": "number"
|
|
49930
|
+
},
|
|
49931
|
+
"maxMultiply": {
|
|
49932
|
+
"type": "number"
|
|
49933
|
+
},
|
|
49934
|
+
"minMultiply": {
|
|
49935
|
+
"type": "number"
|
|
49936
|
+
}
|
|
49937
|
+
},
|
|
49938
|
+
"required": [
|
|
49939
|
+
"description",
|
|
49940
|
+
"columns",
|
|
49941
|
+
"maxBoosts",
|
|
49942
|
+
"minMultiply",
|
|
49943
|
+
"maxMultiply",
|
|
49944
|
+
"maxBoostValues"
|
|
49945
|
+
],
|
|
49946
|
+
"type": "object"
|
|
49947
|
+
},
|
|
49948
|
+
"directions": {
|
|
49949
|
+
"properties": {
|
|
49950
|
+
"description": {
|
|
49951
|
+
"type": "string"
|
|
49952
|
+
},
|
|
49953
|
+
"values": {
|
|
49954
|
+
"items": {
|
|
49955
|
+
"properties": {
|
|
49956
|
+
"description": {
|
|
49957
|
+
"type": "string"
|
|
49958
|
+
},
|
|
49959
|
+
"id": {
|
|
49960
|
+
"type": "string"
|
|
49961
|
+
},
|
|
49962
|
+
"label": {
|
|
49963
|
+
"type": "string"
|
|
49964
|
+
}
|
|
49965
|
+
},
|
|
49966
|
+
"required": [
|
|
49967
|
+
"id",
|
|
49968
|
+
"label",
|
|
49969
|
+
"description"
|
|
49970
|
+
],
|
|
49971
|
+
"type": "object"
|
|
49972
|
+
},
|
|
49973
|
+
"type": "array"
|
|
49974
|
+
}
|
|
49975
|
+
},
|
|
49976
|
+
"required": [
|
|
49977
|
+
"description",
|
|
49978
|
+
"values"
|
|
49979
|
+
],
|
|
49980
|
+
"type": "object"
|
|
49981
|
+
},
|
|
49982
|
+
"geographicColumnWords": {
|
|
49983
|
+
"items": {
|
|
49984
|
+
"type": "string"
|
|
49985
|
+
},
|
|
49986
|
+
"type": "array"
|
|
49987
|
+
},
|
|
49988
|
+
"recentHistory": {
|
|
49989
|
+
"properties": {
|
|
49990
|
+
"default": {
|
|
49991
|
+
"type": "string"
|
|
49992
|
+
},
|
|
49993
|
+
"description": {
|
|
49994
|
+
"type": "string"
|
|
49995
|
+
},
|
|
49996
|
+
"settings": {
|
|
49997
|
+
"items": {
|
|
49998
|
+
"properties": {
|
|
49999
|
+
"halfLifeMonths": {
|
|
50000
|
+
"nullable": true,
|
|
50001
|
+
"type": "number"
|
|
50002
|
+
},
|
|
50003
|
+
"id": {
|
|
50004
|
+
"type": "string"
|
|
50005
|
+
},
|
|
50006
|
+
"label": {
|
|
50007
|
+
"type": "string"
|
|
50008
|
+
}
|
|
50009
|
+
},
|
|
50010
|
+
"required": [
|
|
50011
|
+
"id",
|
|
50012
|
+
"label",
|
|
50013
|
+
"halfLifeMonths"
|
|
50014
|
+
],
|
|
50015
|
+
"type": "object"
|
|
50016
|
+
},
|
|
50017
|
+
"type": "array"
|
|
50018
|
+
}
|
|
50019
|
+
},
|
|
50020
|
+
"required": [
|
|
50021
|
+
"description",
|
|
50022
|
+
"settings",
|
|
50023
|
+
"default"
|
|
50024
|
+
],
|
|
50025
|
+
"type": "object"
|
|
50026
|
+
}
|
|
50027
|
+
},
|
|
50028
|
+
"required": [
|
|
50029
|
+
"recentHistory",
|
|
50030
|
+
"directions",
|
|
50031
|
+
"boosts",
|
|
50032
|
+
"geographicColumnWords"
|
|
50033
|
+
],
|
|
50034
|
+
"type": "object"
|
|
49775
50035
|
}
|
|
49776
50036
|
},
|
|
49777
50037
|
"required": [
|
|
@@ -49824,7 +50084,7 @@
|
|
|
49824
50084
|
"additionalProperties": false,
|
|
49825
50085
|
"properties": {
|
|
49826
50086
|
"dateColumn": {
|
|
49827
|
-
"description": "
|
|
50087
|
+
"description": "Each row's date (a date column): the day you would have wanted the prediction. Only earlier records are used.",
|
|
49828
50088
|
"example": "lead_date",
|
|
49829
50089
|
"maxLength": 100,
|
|
49830
50090
|
"minLength": 1,
|
|
@@ -49834,14 +50094,14 @@
|
|
|
49834
50094
|
"$ref": "#/components/schemas/StudioModelKey"
|
|
49835
50095
|
},
|
|
49836
50096
|
"labelColumn": {
|
|
49837
|
-
"description": "
|
|
50097
|
+
"description": "What happened: two values (won/lost, yes/no, 1/0).",
|
|
49838
50098
|
"example": "result",
|
|
49839
50099
|
"maxLength": 100,
|
|
49840
50100
|
"minLength": 1,
|
|
49841
50101
|
"type": "string"
|
|
49842
50102
|
},
|
|
49843
50103
|
"positiveValues": {
|
|
49844
|
-
"description": "
|
|
50104
|
+
"description": "Values of `labelColumn` that mean it happened, when not plainly won/yes/true/1.",
|
|
49845
50105
|
"example": [
|
|
49846
50106
|
"Closed - Funded"
|
|
49847
50107
|
],
|
|
@@ -49855,7 +50115,7 @@
|
|
|
49855
50115
|
"type": "array"
|
|
49856
50116
|
},
|
|
49857
50117
|
"table": {
|
|
49858
|
-
"description": "Your uploaded table
|
|
50118
|
+
"description": "Your uploaded table: one row per known case.",
|
|
49859
50119
|
"example": "upload_my_deals",
|
|
49860
50120
|
"maxLength": 100,
|
|
49861
50121
|
"minLength": 1,
|
|
@@ -49909,7 +50169,7 @@
|
|
|
49909
50169
|
"$ref": "#/components/schemas/StudioModelKey"
|
|
49910
50170
|
},
|
|
49911
50171
|
"kind": {
|
|
49912
|
-
"description": "Who
|
|
50172
|
+
"description": "Who is scored: `homes` (recent mortgage, in the state), `company_book` (`companyNmlsId`) or `uploaded_list` (`table`, `key`).",
|
|
49913
50173
|
"enum": [
|
|
49914
50174
|
"homes",
|
|
49915
50175
|
"company_book",
|
|
@@ -49953,6 +50213,36 @@
|
|
|
49953
50213
|
],
|
|
49954
50214
|
"type": "object"
|
|
49955
50215
|
},
|
|
50216
|
+
"StudioPaymentRequired": {
|
|
50217
|
+
"properties": {
|
|
50218
|
+
"balance": {
|
|
50219
|
+
"description": "Credits available.",
|
|
50220
|
+
"type": "number"
|
|
50221
|
+
},
|
|
50222
|
+
"cost": {
|
|
50223
|
+
"description": "What the answer costs.",
|
|
50224
|
+
"type": "number"
|
|
50225
|
+
},
|
|
50226
|
+
"error": {
|
|
50227
|
+
"enum": [
|
|
50228
|
+
"payment_required"
|
|
50229
|
+
],
|
|
50230
|
+
"type": "string"
|
|
50231
|
+
},
|
|
50232
|
+
"message": {
|
|
50233
|
+
"type": "string"
|
|
50234
|
+
},
|
|
50235
|
+
"reason": {
|
|
50236
|
+
"type": "string"
|
|
50237
|
+
}
|
|
50238
|
+
},
|
|
50239
|
+
"required": [
|
|
50240
|
+
"error",
|
|
50241
|
+
"balance",
|
|
50242
|
+
"cost"
|
|
50243
|
+
],
|
|
50244
|
+
"type": "object"
|
|
50245
|
+
},
|
|
49956
50246
|
"StudioPublishedModel": {
|
|
49957
50247
|
"properties": {
|
|
49958
50248
|
"asOf": {
|
|
@@ -50411,14 +50701,19 @@
|
|
|
50411
50701
|
"description": "What this question costs.",
|
|
50412
50702
|
"properties": {
|
|
50413
50703
|
"charged": {
|
|
50414
|
-
"description": "
|
|
50704
|
+
"description": "Credits this request cost. `0` while the question is running, when it was already paid for (fetching a paid result again is free), and for a request from the web app or an account that is not metered. On `succeeded`, when the question had not been paid for yet, this fetch pays for it: exactly once, however often it is fetched.",
|
|
50415
50705
|
"example": 0,
|
|
50416
50706
|
"type": "number"
|
|
50417
50707
|
},
|
|
50418
50708
|
"pending": {
|
|
50419
|
-
"description": "Credits your organization is charged, once, for this question — whether or not its result is fetched. While `running`: the least it will be charged if it succeeds (the price is 1 credit per row returned, at least 5). On `succeeded`: exactly what
|
|
50709
|
+
"description": "Credits your organization is charged, once, for this question — whether or not its result is fetched — that have not been charged yet. While `running`: the least it will be charged if it succeeds (the price is 1 credit per row returned, at least 5). On `succeeded`: only for a caller this request does not charge (the web app), exactly what the question is charged, for the rows it returned. Absent when nothing more will be charged.",
|
|
50420
50710
|
"example": 5,
|
|
50421
50711
|
"type": "number"
|
|
50712
|
+
},
|
|
50713
|
+
"remaining": {
|
|
50714
|
+
"description": "Credits left after this request's charge. Present only when this request charged something and the balance is known.",
|
|
50715
|
+
"example": 1995,
|
|
50716
|
+
"type": "number"
|
|
50422
50717
|
}
|
|
50423
50718
|
},
|
|
50424
50719
|
"required": [
|
|
@@ -50494,14 +50789,19 @@
|
|
|
50494
50789
|
"description": "What this question costs.",
|
|
50495
50790
|
"properties": {
|
|
50496
50791
|
"charged": {
|
|
50497
|
-
"description": "
|
|
50792
|
+
"description": "Credits this request cost. `0` while the question is running, when it was already paid for (fetching a paid result again is free), and for a request from the web app or an account that is not metered. On `succeeded`, when the question had not been paid for yet, this fetch pays for it: exactly once, however often it is fetched.",
|
|
50498
50793
|
"example": 0,
|
|
50499
50794
|
"type": "number"
|
|
50500
50795
|
},
|
|
50501
50796
|
"pending": {
|
|
50502
|
-
"description": "Credits your organization is charged, once, for this question — whether or not its result is fetched. While `running`: the least it will be charged if it succeeds (the price is 1 credit per row returned, at least 5). On `succeeded`: exactly what
|
|
50797
|
+
"description": "Credits your organization is charged, once, for this question — whether or not its result is fetched — that have not been charged yet. While `running`: the least it will be charged if it succeeds (the price is 1 credit per row returned, at least 5). On `succeeded`: only for a caller this request does not charge (the web app), exactly what the question is charged, for the rows it returned. Absent when nothing more will be charged.",
|
|
50503
50798
|
"example": 5,
|
|
50504
50799
|
"type": "number"
|
|
50800
|
+
},
|
|
50801
|
+
"remaining": {
|
|
50802
|
+
"description": "Credits left after this request's charge. Present only when this request charged something and the balance is known.",
|
|
50803
|
+
"example": 1995,
|
|
50804
|
+
"type": "number"
|
|
50505
50805
|
}
|
|
50506
50806
|
},
|
|
50507
50807
|
"required": [
|
|
@@ -51642,7 +51942,7 @@
|
|
|
51642
51942
|
"info": {
|
|
51643
51943
|
"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.",
|
|
51644
51944
|
"title": "ModelMatch API",
|
|
51645
|
-
"version": "3.
|
|
51945
|
+
"version": "3.168.0"
|
|
51646
51946
|
},
|
|
51647
51947
|
"openapi": "3.1.0",
|
|
51648
51948
|
"paths": {
|
|
@@ -91490,7 +91790,7 @@
|
|
|
91490
91790
|
}
|
|
91491
91791
|
}
|
|
91492
91792
|
},
|
|
91493
|
-
"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
|
|
91793
|
+
"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."
|
|
91494
91794
|
},
|
|
91495
91795
|
"404": {
|
|
91496
91796
|
"content": {
|
|
@@ -91549,7 +91849,7 @@
|
|
|
91549
91849
|
]
|
|
91550
91850
|
},
|
|
91551
91851
|
"post": {
|
|
91552
|
-
"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.",
|
|
91852
|
+
"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. 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.",
|
|
91553
91853
|
"operationId": "createStudioModel",
|
|
91554
91854
|
"requestBody": {
|
|
91555
91855
|
"content": {
|
|
@@ -91600,7 +91900,7 @@
|
|
|
91600
91900
|
}
|
|
91601
91901
|
}
|
|
91602
91902
|
},
|
|
91603
|
-
"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
|
|
91903
|
+
"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."
|
|
91604
91904
|
},
|
|
91605
91905
|
"404": {
|
|
91606
91906
|
"content": {
|
|
@@ -91712,7 +92012,7 @@
|
|
|
91712
92012
|
}
|
|
91713
92013
|
}
|
|
91714
92014
|
},
|
|
91715
|
-
"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
|
|
92015
|
+
"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."
|
|
91716
92016
|
},
|
|
91717
92017
|
"404": {
|
|
91718
92018
|
"content": {
|
|
@@ -91924,7 +92224,7 @@
|
|
|
91924
92224
|
}
|
|
91925
92225
|
}
|
|
91926
92226
|
},
|
|
91927
|
-
"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
|
|
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, 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."
|
|
91928
92228
|
},
|
|
91929
92229
|
"404": {
|
|
91930
92230
|
"content": {
|
|
@@ -92048,7 +92348,7 @@
|
|
|
92048
92348
|
}
|
|
92049
92349
|
}
|
|
92050
92350
|
},
|
|
92051
|
-
"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
|
|
92351
|
+
"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."
|
|
92052
92352
|
},
|
|
92053
92353
|
"404": {
|
|
92054
92354
|
"content": {
|
|
@@ -92184,7 +92484,7 @@
|
|
|
92184
92484
|
}
|
|
92185
92485
|
}
|
|
92186
92486
|
},
|
|
92187
|
-
"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
|
|
92487
|
+
"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."
|
|
92188
92488
|
},
|
|
92189
92489
|
"404": {
|
|
92190
92490
|
"content": {
|
|
@@ -92255,7 +92555,7 @@
|
|
|
92255
92555
|
},
|
|
92256
92556
|
"/v1/studio/queries/{queryId}": {
|
|
92257
92557
|
"get": {
|
|
92258
|
-
"description": "What became of a question `runStudioQuery` answered `202` for. `running`: wait `pollAfterSeconds` and fetch again — after a few tries, tell the user it is still running and can be checked later. `succeeded`: the same answer a quick question gets (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept for an hour. `failed`: `error` and `code`, as the question itself would have been refused or stopped. `expired`: the answer is no longer kept.
|
|
92558
|
+
"description": "What became of a question `runStudioQuery` answered `202` for. `running`: wait `pollAfterSeconds` and fetch again — after a few tries, tell the user it is still running and can be checked later. `succeeded`: the same answer a quick question gets (`columns`, `rows`, `rowCount`, `truncated`, `elapsedMs`), kept for an hour. `failed`: `error` and `code`, as the question itself would have been refused or stopped. `expired`: the answer is no longer kept. A question that succeeded in the background is charged once, 1 credit per row returned in `rows`, at least 5 per answered question, whether or not its result is fetched — and its rows are handed out only once it is paid for. The first fetch that returns its rows pays for it, unless it has already been paid for (`credits.charged`, `credits.remaining`); fetching it again after that is free. When your organization does not have the credits, the fetch answers `402` with no rows and nothing charged: add credits and fetch it again (within the hour the answer is kept) — it is charged once, never twice. Fetching while it is `running`, and a `failed` question, are free. Only the organization that asked can fetch a result.",
|
|
92259
92559
|
"operationId": "getStudioQueryResult",
|
|
92260
92560
|
"parameters": [
|
|
92261
92561
|
{
|
|
@@ -92302,6 +92602,16 @@
|
|
|
92302
92602
|
},
|
|
92303
92603
|
"description": "Authentication required."
|
|
92304
92604
|
},
|
|
92605
|
+
"402": {
|
|
92606
|
+
"content": {
|
|
92607
|
+
"application/json": {
|
|
92608
|
+
"schema": {
|
|
92609
|
+
"$ref": "#/components/schemas/StudioPaymentRequired"
|
|
92610
|
+
}
|
|
92611
|
+
}
|
|
92612
|
+
},
|
|
92613
|
+
"description": "The question succeeded, but its answer has not been paid for and your organization does not have the credits for it (`cost`). No rows are returned and nothing was charged. Add credits and fetch it again: it does not need to be asked again."
|
|
92614
|
+
},
|
|
92305
92615
|
"403": {
|
|
92306
92616
|
"content": {
|
|
92307
92617
|
"application/json": {
|
|
@@ -92360,7 +92670,7 @@
|
|
|
92360
92670
|
}
|
|
92361
92671
|
}
|
|
92362
92672
|
},
|
|
92363
|
-
"description": "`studio_unavailable` — Studio is not available right now."
|
|
92673
|
+
"description": "`studio_unavailable` — Studio is not available right now. `billing_unavailable` — the question succeeded, but the charge for its answer could not be made right now, so no rows were returned; fetch it again in a minute (it is never charged twice)."
|
|
92364
92674
|
}
|
|
92365
92675
|
},
|
|
92366
92676
|
"summary": "The result of a question that ran in the background",
|