Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions experimentation/Track model training with MLflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Finally, let's try to log an artifact. An artifact can be any file. For example, you can plot the ROC curve and store the plot as an image. The image can be logged as an artifact. \n",
"Finally, let's try to log an artifact. An artifact can be any file. For example, you can plot the ROC curve and log the figure as an artifact. \n",
"\n",
"Run the following cell to log a parameter, metric, and an artifact."
]
Expand Down Expand Up @@ -446,11 +446,11 @@
" plt.xlabel('False Positive Rate')\n",
" plt.ylabel('True Positive Rate')\n",
" plt.title('ROC Curve')\n",
" plt.savefig(\"ROC-Curve.png\")\n",
"\n",
" mlflow.log_param(\"estimator\", \"DecisionTreeClassifier\")\n",
" mlflow.log_metric(\"Accuracy\", acc)"
]
" mlflow.log_metric(\"Accuracy\", acc)\n",
" mlflow.log_figure(fig, \"ROC-Curve.png\")"
],
},
{
"attachments": {},
Expand Down