CaCu's dummy model in its own folder
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user