CaCu's dummy model in its own folder

This commit is contained in:
2026-11-04 21:38:37 -06:00
parent 1f6e2df051
commit 37fb292a4f
9 changed files with 218 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
"""The model's Hamilton driver."""
from hamilton import driver
from models.cacu.cin2_logistic import model
def train(cohort_path: str, environment: str = "DEV") -> str:
"""Trains on a build's file and returns the registered version."""
dr = driver.Builder().with_modules(model).build()
inputs = {"cohort_path": str(cohort_path), "environment": environment}
return dr.execute(["registered_model"], inputs=inputs)["registered_model"]