Update examples to ClearML

This commit is contained in:
allegroai
2020-12-30 16:53:19 +02:00
parent 0bb590b5da
commit 4c8a24f1ff
17 changed files with 86 additions and 87 deletions

View File

@@ -7,13 +7,13 @@
"id": "RZiRah3QiR_G"
},
"source": [
"# Allegro Trains logging example\n",
"# Allegro ClearML logging example\n",
"\n",
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/allegroai/trains/blob/master/examples/reporting/Allegro_Trains_logging_example.ipynb)\n",
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/allegroai/clearml/blob/master/examples/reporting/Allegro_Trains_logging_example.ipynb)\n",
"\n",
"This example introduces Trains [Logger](https://allegro.ai/docs/logger.html) functionality. Logger is the Trains console log and metric interface.\n",
"This example introduces ClearML [Logger](https://allegro.ai/docs/logger.html) functionality. Logger is the ClearML console log and metric interface.\n",
"\n",
"You can find more reporting examples [here](https://github.com/allegroai/trains/tree/master/examples/reporting)."
"You can find more reporting examples [here](https://github.com/allegroai/clearml/tree/master/examples/reporting)."
]
},
{
@@ -26,7 +26,7 @@
},
"outputs": [],
"source": [
"!pip install trains\n",
"!pip install clearml\n",
"!pip install numpy"
]
},
@@ -40,7 +40,7 @@
"### Create a new Task\n",
"Create a new Task and get a Logger object for the Task.\n",
"\n",
"To create a new Task object, call the `Task.init` method providing it with `project_name` (the project name for the experiment) and `task_name` (the name of the experiment). When `Task.init` executes, a link to the Web UI Results page for the newly generated Task will be printed, and the Task will be updated in real time in the Trains demo server.\n",
"To create a new Task object, call the `Task.init` method providing it with `project_name` (the project name for the experiment) and `task_name` (the name of the experiment). When `Task.init` executes, a link to the Web UI Results page for the newly generated Task will be printed, and the Task will be updated in real time in the ClearML demo server.\n",
"\n",
"You can read about the `Task` class in the docs [here](https://allegro.ai/docs/task.html).\n",
"\n",
@@ -59,7 +59,7 @@
"source": [
"import numpy as np\n",
"\n",
"from trains import Task\n",
"from clearml import Task\n",
"\n",
"# Start a new task\n",
"task = Task.init(project_name=\"Colab notebooks\", task_name=\"Explicit Logging\")\n",
@@ -77,7 +77,7 @@
},
"source": [
"### Explicit scalar logging\n",
"Use the [Logger.report_scalar](https://allegro.ai/docs/logger.html#trains.logger.Logger.report_scalar) method to explicitly log scalars. Scalar plots appear in the Web UI, Results > Scalars tab."
"Use the [Logger.report_scalar](https://allegro.ai/docs/logger.html#clearml.logger.Logger.report_scalar) method to explicitly log scalars. Scalar plots appear in the Web UI, Results > Scalars tab."
]
},
{
@@ -241,7 +241,7 @@
},
"outputs": [],
"source": [
"from trains.storage import StorageManager\n",
"from clearml.storage import StorageManager\n",
"image_local_copy = StorageManager.get_local_copy(\n",
" remote_url=\"https://pytorch.org/tutorials/_static/img/neural-style/picasso.jpg\",\n",
" name=\"picasso.jpg\"\n",
@@ -273,7 +273,7 @@
"source": [
"#### Report images and media\n",
"\n",
"Use [Logger.report_image](https://allegro.ai/docs/logger.html?highlight=report_image#trains.logger.Logger.report_image) and [Logger.report_media](https://allegro.ai/docs/logger.html?highlight=report_media#trains.logger.Logger.report_media) to report the downloaded samples. The debug samples appear in the Results > Debug Samples tab."
"Use [Logger.report_image](https://allegro.ai/docs/logger.html?highlight=report_image#clearml.logger.Logger.report_image) and [Logger.report_media](https://allegro.ai/docs/logger.html?highlight=report_media#clearml.logger.Logger.report_media) to report the downloaded samples. The debug samples appear in the Results > Debug Samples tab."
]
},
{
@@ -316,7 +316,7 @@
},
"source": [
"### Explicit text logging\n",
"Use [Logger.report_text](https://allegro.ai/docs/logger.html?highlight=report_text#trains.logger.Logger.report_text) to log text message. They appear in Results > Log."
"Use [Logger.report_text](https://allegro.ai/docs/logger.html?highlight=report_text#clearml.logger.Logger.report_text) to log text message. They appear in Results > Log."
]
},
{
@@ -344,7 +344,7 @@
"\n",
"Reports are flushed in the background every couple of seconds, and at the end of the process execution.\n",
"\n",
"Or, flush the Logger by calling [Logger.flush](https://allegro.ai/docs/logger.html?highlight=report_text#trains.logger.Logger.flush)."
"Or, flush the Logger by calling [Logger.flush](https://allegro.ai/docs/logger.html?highlight=report_text#clearml.logger.Logger.flush)."
]
},
{
@@ -364,7 +364,7 @@
"metadata": {
"colab": {
"collapsed_sections": [],
"name": "Allegro Trains logging example.ipynb",
"name": "Allegro ClearML logging example.ipynb",
"provenance": []
},
"kernelspec": {

View File

@@ -1 +0,0 @@
matplotlib_manual_reporting.py