Add manual seaborn logging example (#226)

This commit is contained in:
pollfly 2022-04-10 10:47:04 +03:00 committed by GitHub
parent 4835f807cf
commit ce3b5d4318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 6 deletions

View File

@ -3,12 +3,20 @@ title: Manual Matplotlib Reporting
---
The [matplotlib_manual_reporting.py](https://github.com/allegroai/clearml/blob/master/examples/reporting/matplotlib_manual_reporting.py)
example demonstrates reporting using Matplotlib and Seaborn with ClearML.
example demonstrates using ClearML to log plots and images generated by Matplotlib and Seaborn.
When the script runs, it creates an experiment named `Manual Matplotlib example`, which is associated with the
`examples` project.
## Plots
The Matplotlib figure reported by calling the [Logger.report_matplotlib_figure](../../references/sdk/logger.md#report_matplotlib_figure)
method appears in **RESULTS** **>** **PLOTS**.
The Matplotlib and Seaborn plots that are reported using the [Logger.report_matplotlib_figure](../../references/sdk/logger.md#report_matplotlib_figure)
method appear in the experiments **RESULTS** **>** **PLOTS**.
![image](../../img/manual_matplotlib_reporting_01.png)
![Experiment Matplotlib plots](../../img/manual_matplotlib_reporting_01.png)
![Experiment Seaborn plot](../../img/manual_matplotlib_reporting_02.png)
## Debug Samples
Matplotlib figures can be logged as images by using the [Logger.report_matplotlib_figure](../../references/sdk/logger.md#report_matplotlib_figure)
method, and passing `report_image=True`. The images are stored in the experiments **RESULTS > DEBUG SAMPLES**.
![Experiment debug sample](../../img/manual_matplotlib_reporting_03.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB