diff --git a/numalogic/udfs/postprocess.py b/numalogic/udfs/postprocess.py index d9a6aa5c..a8342a76 100644 --- a/numalogic/udfs/postprocess.py +++ b/numalogic/udfs/postprocess.py @@ -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) diff --git a/pyproject.toml b/pyproject.toml index a618d0f2..0949c8f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" }]