Last active
February 15, 2022 01:34
-
-
Save ywolff/79db4897ef83a9adba6a8ccff580599e 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
import mlflow | |
import typer | |
from src.constants import PROJECT_ROOT_PATH, PROJECT_EXPERIMENT_NAME | |
def start_pipeline(run_name): | |
mlflow.set_experiment(PROJECT_EXPERIMENT_NAME) | |
with mlflow.start_run(run_name=run_name): | |
print(mlflow.active_run().info.run_id) | |
mlflow.log_artifact(PROJECT_ROOT_PATH / "dvc.yaml") | |
if __name__ == "__main__": | |
typer.run(start_pipeline) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment