wren node: calibration setting, passed to wren's training as the installation's calibration records
Docs / docs (push) Successful in 21s
Playwright Tests / test-playwright (1, 2) (push) Failing after 36s
Playwright Tests / test-playwright (2, 2) (push) Failing after 21s
pre-commit / pre-commit (push) Failing after 2m32s
Test Backend / test-backend (3.12) (push) Failing after 5m15s
Test Backend / test-backend (3.14) (push) Failing after 5m6s
Compose Smoke Test / test-compose (push) Failing after 28s
Playwright Tests / merge-reports (push) Failing after 2m27s
Docs / docs (push) Successful in 21s
Playwright Tests / test-playwright (1, 2) (push) Failing after 36s
Playwright Tests / test-playwright (2, 2) (push) Failing after 21s
pre-commit / pre-commit (push) Failing after 2m32s
Test Backend / test-backend (3.12) (push) Failing after 5m15s
Test Backend / test-backend (3.14) (push) Failing after 5m6s
Compose Smoke Test / test-compose (push) Failing after 28s
Playwright Tests / merge-reports (push) Failing after 2m27s
This commit is contained in:
@@ -269,6 +269,12 @@ class WrenNode(Node):
|
||||
'as {"state": {"user_location": "kitchen"}, "command": "lights on", '
|
||||
'"calls": [["kitchen_light", true]]}.',
|
||||
)
|
||||
calibration: list[dict[str, Any]] = Field(
|
||||
default_factory=list,
|
||||
description="Training only: commands in your own words, like "
|
||||
"examples, that a new model's threshold is chosen on. It never "
|
||||
"trains on them.",
|
||||
)
|
||||
tests: list[dict[str, Any]] = Field(
|
||||
default_factory=list,
|
||||
description="Training only: commands a new model is scored on, like "
|
||||
@@ -355,10 +361,11 @@ class WrenNode(Node):
|
||||
|
||||
def installation(self) -> dict[str, Any]:
|
||||
"""What wren's training flow learns from: the targets, each with a
|
||||
value, and the ``examples`` and ``tests``."""
|
||||
value, and the ``examples``, ``calibration`` and ``tests``."""
|
||||
return {
|
||||
"targets": [t | {"value": _unset(t)} for t in self.targets.values()],
|
||||
"examples": self.cfg.examples,
|
||||
"calibration": self.cfg.calibration,
|
||||
"tests": self.cfg.tests,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user