Live survival: score with the rehydrated production model
This commit is contained in:
@@ -42,7 +42,7 @@ def _live_context(domain: str, scenario: str):
|
|||||||
with _LOCK:
|
with _LOCK:
|
||||||
if _LIVE.get("key") != key:
|
if _LIVE.get("key") != key:
|
||||||
build = KitBuild(domain, build_id)
|
build = KitBuild(domain, build_id)
|
||||||
model = mlflow.sklearn.load_model(resolved.model_uri).steps[-1][1]
|
model = live.rehydrate(mlflow.sklearn.load_model(resolved.model_uri).steps[-1][1])
|
||||||
_LIVE.update(key=key, value=(spec, model, live.members(spec, build.frame(), build.lineage()), resolved.version))
|
_LIVE.update(key=key, value=(spec, model, live.members(spec, build.frame(), build.lineage()), resolved.version))
|
||||||
_ANSWERS.clear()
|
_ANSWERS.clear()
|
||||||
return _LIVE["value"]
|
return _LIVE["value"]
|
||||||
|
|||||||
Reference in New Issue
Block a user