Skip to content

Commit

Permalink
fix: add threshold in metadata
Browse files Browse the repository at this point in the history
Signed-off-by: s0nicboOm <[email protected]>
  • Loading branch information
s0nicboOm committed Apr 29, 2024
1 parent 6e41a79 commit f9ebfaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions numalogic/udfs/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ def exec(self, keys: list[str], datum: Datum) -> Messages:
score_conf=_conf.numalogic_conf.score,
postproc_tx=postproc_tx,
) # (nfeat,)
payload = replace(
payload,
metadata={
"threshold": float(thresh_artifact.artifact.threshold),
**payload.metadata,
},
)

# Calculate adjusted unified score
a_adjusted, y_unified, y_features = self._adjust_score(_conf, a_unified, payload)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "numalogic"
version = "0.9.1a6"
version = "0.9.1a7"
description = "Collection of operational Machine Learning models and tools."
authors = ["Numalogic Developers"]
packages = [{ include = "numalogic" }]
Expand Down

0 comments on commit f9ebfaf

Please sign in to comment.