Skip to content

Instantly share code, notes, and snippets.

@elijahbenizzy
Created September 2, 2023 23:21
Show Gist options
  • Save elijahbenizzy/9600333f045e770630e550fbf92191bd to your computer and use it in GitHub Desktop.
Save elijahbenizzy/9600333f045e770630e550fbf92191bd to your computer and use it in GitHub Desktop.
from hamilton import driver
dr = driver.Driver(
{"mode": "batch"},
aggregations, data_loaders, joins, features, model
)
inputs = {
"client_login_db": "login_data",
"client_login_table": "client_logins",
"survey_results_db": "survey_data",
"survey_results_table": "survey_results",
"execution_time": datetime.datetime.now(),
}
df = dr.execute(["predictions"], inputs=inputs)
# Do something with the results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment