项目
在 GitHub 查看
noahgift/mlflow-project-best-practices
关于
An example MLFlow project
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文mlflow-project-best-practices
An example MLFlow project
High Level Architecture

You can Notebook see the Databricks code here: https://github.com/noahgift/mlflow-project-best-practices/blob/main/XGBoost-fake-news-automl.ipynb
Example in Azure CloudShell

Example in Github Codespaces

Curl Example
curl \
-u token:$DATABRICKS_TOKEN \
-X POST \
-H "Content-Type: application/json; format=pandas-records" \
[email protected] \
https://adb-2951765055089996.16.azuredatabricks.net/model/Fake-News/1/invocations
Deploy Architecture

Query registered model
Query with Databricks CLI
- Create a databricks config:
touch ~/.databrickscfg - Put in host and token
- Query jobs
databricks jobs list --output JSON | jq
4. List clusters
databricks clusters list --output JSON | jq
- List contents of DBFS
databricks fs ls dbfs:/
Query for Models with API
You need to set the tracking URI.
export MLFLOW_TRACKING_URI=databricks
from pprint import pprint
from mlflow.tracking import MlflowClient
client = MlflowClient()
for rm in client.list_registered_models():
pprint(dict(rm), indent=4)
Download Model
CLI version
mlflow artifacts download --artifact-uri models:/<name>/<version|stage>
To use Python do the following:
from mlflow.store.artifact.models_artifact_repo import ModelsArtifactRepository
model_uri = MlflowClient.get_model_version_download_uri(model_name, model_version)
ModelsArtifactRepository(model_uri).download_artifacts(artifact_path="")
Register model for AWS Sagemaker

Goal for today
- Databricks Tensorflow run
- Feature Store
- Model Serving
Model Serving
https://docs.databricks.com/applications/mlflow/model-serving.html
Run it with mlserve
mlflow models serve --model-uri /workspaces/mlflow-project-best-practices/tf-model
References
Learn MLOps end to end: Machine Learning with Databricks and MLflow (Coursera) · MLOps specialization, Duke (Coursera) · Machine Learning Operations program (edX)
More courses from Noah Gift and Pragmatic AI Labs.
探索相关项目
加载中…