mlflow test 1

This commit is contained in:
2025-06-19 09:36:06 +00:00
parent 070432d505
commit 47c52d66a2
2 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,8 @@ from sklearn.linear_model import ElasticNet
import mlflow
import mlflow.sklearn
mlflow.set_tracking_uri(uri="http://127.0.0.1:80")
import logging
logging.basicConfig(level=logging.WARN)
logger = logging.getLogger(__name__)

9
testgit.py Normal file
View File

@ -0,0 +1,9 @@
import mlflow
run = mlflow.get_run("82dc1facd73b4fda886b25005e5db0d8")
git_commit = run.data.tags.get("mlflow.source.git.commit")
git_repo_url = run.data.tags.get("mlflow.source.git.repoURL")
print(f"Git Commit: {git_commit}")
print(f"Git Repo URL: {git_repo_url}")