Utilizing MLflow in JupyterLab
JupyterLab Example: MLflow Quickstart
Getting Started with MLflow on DNAnexus
Importing Required Libraries
import mlflow
import mlflow.sklearn
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score, roc_auc_score
import ray
from ray.util.joblib import register_ray
from joblib import parallel_backendData Preparation
Define an MLflow Experiment
Enable MLflow Autologging
Train the model and log with MLflow
Register the model
Load the registered model and make predictions
Resources
Last updated