Skip to content

Commit 92353bd

Browse files
committed
feat: update schema in example ML backend. comments
1 parent 33262e1 commit 92353bd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ami/ml/models/pipeline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ def save_results(results: PipelineResponse | None = None, results_json: str | No
289289

290290
assert classification.algorithm, "No classification algorithm was specified in the returned results."
291291
classification_algo, _created = Algorithm.objects.get_or_create(
292+
# @TODO Algorithm needs to be an object with a slug/key, name and category map
292293
name=classification.algorithm,
293294
)
294295
if _created:

ml_backends/example/api/schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class Classification(pydantic.BaseModel):
6969
classification: str
7070
labels: list[str] = []
7171
scores: list[float] = []
72+
logits: list[float] | None = None
7273
inference_time: float | None = None
7374
algorithm: str
7475
terminal: bool = True

0 commit comments

Comments
 (0)