Set up MLflow experiment tracking in a Domino project by generating an experiment_setup.py helper with deployment-unique experiment names, Domino context tags, and framework auto-logging, plus an example training script. Use when the user asks to add or set up experiment tracking, MLflow logging, or autologging for a traditional ML project in Domino.
89%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Applies to Domino 6.3 and Domino Cloud.
Add MLflow experiment tracking to a traditional ML project. For LLM or agent tracing, use the
domino-trace-setup skill instead.
requirements.txt, pyproject.toml, environment.yml,
or imports in the code.Do not stop to ask for either. Make the changes with these defaults, then state the base name and frameworks you used in the reply so the user can change them.
Copy assets/experiment_setup.py from this skill's folder into the project. It provides:
setup_experiment(base_name): sets an experiment named <base>-<project>-<username>.log_domino_context(): tags the run with the Domino user, project, run ID, run number, and hardware tier id (DOMINO_HARDWARE_TIER_ID).setup_autolog(): enables MLflow autologging for whichever supported frameworks are installed.Report which frameworks were detected and will be autologged, for example:
Detected frameworks:
✅ scikit-learn (requirements.txt)
✅ xgboost (requirements.txt)
❌ tensorflow (not found)If the project trains large models, add the multipart-upload settings below.
Create an example training script, or wire the helpers into the user's existing script.
# train.py
from experiment_setup import setup_experiment, log_domino_context, setup_autolog
import mlflow
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearn.datasets import load_iris
experiment_name = setup_experiment("iris-classifier")
setup_autolog()
iris = load_iris()
X_train, X_test, y_train, y_test = train_test_split(
iris.data, iris.target, test_size=0.2, random_state=42
)
with mlflow.start_run(run_name="random-forest-v1"):
log_domino_context()
mlflow.log_param("custom_param", "value")
model = RandomForestClassifier(n_estimators=100, max_depth=5)
model.fit(X_train, y_train)
test_accuracy = model.score(X_test, y_test)
mlflow.log_metric("test_accuracy", test_accuracy)
print(f"Test accuracy: {test_accuracy:.4f}")
print(f"Run ID: {mlflow.active_run().info.run_id}")Experiment names must be unique across the entire Domino deployment, not just the project.
Always keep the username and project suffix that setup_experiment adds.
For large artifacts (LLMs, deep learning checkpoints), enable multipart upload:
os.environ['MLFLOW_ENABLE_PROXY_MULTIPART_UPLOAD'] = "true"
os.environ['MLFLOW_MULTIPART_UPLOAD_CHUNK_SIZE'] = "104857600" # 100MBFor run comparison, the model registry, and deeper MLflow usage, use the
domino-experiment-tracking skill.
dominodatalab/domino-claude-plugin
6e5879f
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.