Created
July 14, 2024 23:40
-
-
Save elijahbenizzy/b2564226e14fdac1d7a9fef129d42525 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from hamilton import driver, base | |
from hamilton import log_setup | |
dr = ( | |
driver | |
.Builder() | |
.with_modules(base_dates, probabilities) | |
.with_adapters(base.PandasDataFrameResult()) | |
.build() | |
) | |
delivery_probabilities = dr.execute( | |
["possible_dates", "probability_before_date", "probability_on_date"], | |
inputs={"start_date" : PREGNANCY_START_DATE, "current_date": datetime.datetime.now()} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment