Modernise
Some checks failed
Publish documentation / publish (push) Successful in 58s
Check / Lint, format & type checks (push) Failing after 1m2s
Check / Test on Python 3.10 (push) Successful in 1m9s
Check / Test on Python 3.9 (push) Successful in 50s

This commit is contained in:
Andras Schmelczer 2026-06-06 21:39:06 +01:00
parent 4c6441182b
commit 8faee98ec6
44 changed files with 214 additions and 201 deletions

View file

@ -23,7 +23,7 @@ def add_ground_truth(
tags: Union[List[str], str] = [],
train_split_ratio: float = 1,
test_split_ratio: float = 0,
validation_split_ratio: float = 0
validation_split_ratio: float = 0,
) -> None:
"""Add training data (with optional train-test splitting).

View file

@ -10,7 +10,7 @@ def query_ground_truth(
*,
since: Optional[datetime] = None,
until: Optional[datetime] = None,
return_max_count: Optional[int] = None
return_max_count: Optional[int] = None,
) -> List[Trace]:
"""Return training samples.

View file

@ -51,15 +51,19 @@ class TracingContext(Generic[T]):
logged_values=self._values,
models=self._models,
output=output,
exception=None
if exception is None
else f"{type(exception).__name__}: {exception}",
exception=(
None
if exception is None
else f"{type(exception).__name__}: {exception}"
),
tags=[
self._name,
ONLINE_TAG_NAME,
PRODUCTION_TAG_NAME
if get_context().is_production
else DEVELOPMENT_TAG_NAME,
(
PRODUCTION_TAG_NAME
if get_context().is_production
else DEVELOPMENT_TAG_NAME
),
],
),
)