|
86 | 86 | "When training models, it can be useful to visualize information about the model with plots. We can do this manually, but here, we'll show you how to do this using a tool called [Comet ML](https://www.comet.com/docs/v2/), which generates loss and GPU usage curves for you. As you'll see, Comet also enables easy saving of your experiments to a central interface.\n",
|
87 | 87 | "\n",
|
88 | 88 | "First, sign up for a Comet account [at this link](https://www.comet.com/signup?utm_source=mit_dl&utm_medium=partner&utm_content=github\n",
|
89 |
| - ") (you can use your Google or Github account). Running this cell will prompt you to enter your API Key, which you can find either in the first 'Get Started with Comet' page or by pressing the '?' in the top right corner and then 'Quickstart Guide' -- it is on the right hand side of the page." |
| 89 | + ") (you can use your Google or Github account). Running this cell will prompt you to enter your API Key, which you can find either in the first 'Get Started with Comet' page or by pressing the '?' in the top right corner and then 'Quickstart Guide' -- it is on the right hand side of the page.\n", |
| 90 | + "\n", |
| 91 | + "After entering your API key, you will find a unique link taking you to a project page for this project -- which we have named `6.s191_lab1_part1`. Note that you can find your active projects under your home `projects` tab in the Comet web interface." |
90 | 92 | ]
|
91 | 93 | },
|
92 | 94 | {
|
|
705 | 707 | "plt.legend(('Predicted', 'True'))\n",
|
706 | 708 | "plt.xlabel('Iteration')\n",
|
707 | 709 | "plt.ylabel('x value')\n",
|
708 |
| - "comet_experiment.end()" |
| 710 | + "# log the plot to comet\n", |
| 711 | + "comet_experiment.log_figure(figure_name=\"optimizing\", figure=plt)" |
709 | 712 | ]
|
710 | 713 | },
|
711 | 714 | {
|
|
718 | 721 | "\n",
|
719 | 722 | "In the above code block, you also saw how you can directly log metrics, like loss values, to Comet. These are then retained within your profile's web interface, where you are able to visualize the results of your different training runs!"
|
720 | 723 | ]
|
| 724 | + }, |
| 725 | + { |
| 726 | + "cell_type": "code", |
| 727 | + "source": [ |
| 728 | + "# now that we are done, we can end the comet experiment!\n", |
| 729 | + "comet_experiment.end()" |
| 730 | + ], |
| 731 | + "metadata": { |
| 732 | + "id": "Ba2YF7EN0QPz" |
| 733 | + }, |
| 734 | + "execution_count": null, |
| 735 | + "outputs": [] |
721 | 736 | }
|
722 | 737 | ],
|
723 | 738 | "metadata": {
|
|
0 commit comments