Created
October 31, 2022 12:38
-
-
Save anna-geller/18130e2121f31141834b8efcaad07211 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 prefect import task, flow, get_run_logger | |
@task | |
def get_training_set(): | |
return dict(data=21) | |
@task | |
def apply_ml_model(training_set): | |
result = training_set["data"] * 2 | |
logger = get_run_logger() | |
logger.info("Final result: %s 🤖", result) | |
return result | |
@flow | |
def sales_forecast(): | |
data = get_training_set() | |
apply_ml_model(data) | |
if __name__ == "__main__": | |
sales_forecast() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment