@model-match/api 3.111.0 → 3.113.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 +8 -0
- package/dist/{index-BDlga75E.d.mts → index-D3G9n7FS.d.mts} +72 -384
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +3 -27
- package/dist/slim/index.mjs +3 -91
- package/dist/{src-CcvbR87G.mjs → src-Bja7DVkE.mjs} +1 -101
- package/openapi.json +717 -1488
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Changes to `@model-match/api` that affect how you use it. Each version is generated from the ModelMatch API's OpenAPI spec, so new endpoints and fields appear in the [API reference](https://docs.modelmatch.com/developers) as they ship.
|
|
4
4
|
|
|
5
|
+
## 3.113.0
|
|
6
|
+
|
|
7
|
+
- **`createStudioModel` can train wide and read local.** `widen: "auto"` trains a model of a few ZIP codes or counties on the smallest wider area with enough past cases and keeps the requested area as the model's `focus`. Scores cover the focus unless you pass `scoreArea: "training"`, which scores the whole area and marks focus rows with `inFocus`. Models now carry `focus` and `scoreArea`.
|
|
8
|
+
|
|
9
|
+
## 3.112.0
|
|
10
|
+
|
|
11
|
+
- **`createStudioModel` checks a small area first.** A model of a few ZIP codes or counties with too few past cases of the outcome is refused before training, free, with `422` and `code: "scope_too_small"`. `details.suggestedScope` is the smallest wider area with enough past cases (the county, the county and its neighbors, or the state) and `details.scopeSizes` lists each area's count. Send the suggested area as `scope`, or pass the new `widen: "off"` to train on the area as asked.
|
|
12
|
+
|
|
5
13
|
## 3.111.0
|
|
6
14
|
|
|
7
15
|
- **Write to a database file.** `writeFileDatabase` runs a batch of statements on a SQLite database you own or can edit, in one transaction, and saves the result as the file's next revision. Pass `expectRevision` to write only if nobody saved a newer revision since you read it; otherwise the answer is `409 revision_conflict` with `latestRevision`. ATTACH, PRAGMA, VACUUM and extension loading are refused. The database's own triggers run.
|