From 255239ebc85cd8b9e76dfb95a28195bcaf0184fd Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 25 Sep 2019 01:27:24 +0300 Subject: [PATCH] Documentation match latest Logger interface --- docs/logger.md | 112 +------------------------------------------------ 1 file changed, 2 insertions(+), 110 deletions(-) diff --git a/docs/logger.md b/docs/logger.md index 9fd01fef..9d972927 100644 --- a/docs/logger.md +++ b/docs/logger.md @@ -11,20 +11,12 @@ Using the **TRAINS** [Logger](https://github.com/allegroai/trains/blob/master/tr * [Confusion matrices](#confusion-matrices) * [Surface diagrams](#surface-diagrams) * [Images](#images) - * [Files](#files) * Track hyper-parameters and OS environment variables * Logging experiment parameter [dictionaries](#logging-experiment-parameter-dictionaries) * Specifying [environment variables](#specifying-environment-variables-to-track) to track * Message logging - * [Debugging messages](#debugging-messages) - * [Informational messages](#informational-messages) - * [Warnings](#warnings) - * [General errors](#general-errors) - * [Critial errors](#critical-errors) - * [Fatal errors](#fatal-errors) - * [Console and logger messages](#console-and-logger-messages) * [Reporting text without formatting](#reporting-text-without-formatting) Additionally, the **TRAINS** Logger module provides methods that allow you to do the following: @@ -834,7 +826,7 @@ First [get the current logger](#get-the-current-logger) and then use it (see an **Method**: ```python -def report_image_and_upload(self, title, series, iteration, path=None, matrix=None, max_image_history=None, delete_after_upload=False) +def report_image(self, title, series, iteration, local_path=None, matrix=None, max_image_history=None, delete_after_upload=False) ``` **Arguments**: @@ -921,7 +913,7 @@ def report_image_and_upload(self, title, series, iteration, path=None, matrix=No - path + local_path string @@ -933,106 +925,6 @@ def report_image_and_upload(self, title, series, iteration, path=None, matrix=No -### Files - -Use to upload a file and report a link to it. The file contents is uploaded to the bucket specified in the **TRAINS** configuration file, -or a [a default upload destination](#set-default-upload-destination), if you set a default. - -First [get the current logger](#get-the-current-logger) and then use it (see an [example script](https://github.com/allegroai/trains/blob/master/examples/manual_reporting.py)) with the following method. - -**Method**: - -```python -def report_file_and_upload(self, title, series, iteration, path=None, max_file_history=None, - delete_after_upload=False) -``` - -**Arguments**: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Parameter - Type - Description - Mandatory -
iteration - integer - The iteration number. - Yes -
series - string - The label of the series. - Yes -
title - string - The title of the image. - Yes -
delete_after_upload - boolean - Indicates whether to delete the local copy of the file after uploading it. The values are: -
    -
  • True - delete -
  • -
  • False - do not delete (default) -
  • -
-
No -
max_file_history - integer - The maximum number of images to store per metric / variant combination. For an unlimited number of files to store, specify a negative number. - The default value which is set in the global configuration is 5. - No -
path - string - The path of the file to upload. - No -
- ## Hyper-parameters and Environment Variables ### Logging Experiment Parameter Dictionaries