From f2e087598989f30d95a392a19b1db80234ff8103 Mon Sep 17 00:00:00 2001 From: mihran113 Date: Mon, 23 Sep 2024 14:07:03 +0400 Subject: [PATCH] Add documentation --- docs/source/index.rst | 1 + docs/source/ui/pages/reports.md | 175 ++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 docs/source/ui/pages/reports.md diff --git a/docs/source/index.rst b/docs/source/index.rst index c2691d2c85..ba058a9945 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -30,6 +30,7 @@ ui/pages/table.md ui/pages/bookmarks.md ui/pages/tags.md + ui/pages/reports.md .. toctree:: diff --git a/docs/source/ui/pages/reports.md b/docs/source/ui/pages/reports.md new file mode 100644 index 0000000000..255b3eaaa3 --- /dev/null +++ b/docs/source/ui/pages/reports.md @@ -0,0 +1,175 @@ +## Reports + +### Overview + +Use Aim reports to organize runs, embed visualizations, describe your findings, and share updates with collaborators. + +The following image shows an example of a report created from metrics that were logged to aim over the course of a training. +View Mode + + +### Single report page +In single report page you can find 2 modes: `view` and `edit`. + + +In `edit` mode you can create the report that you wish for and in view mode see the final result of it, the example shared above is of the `view` mode. + +You can use +**```aim** sections to retrieve data from BE and visualize them. The example shown below is an overview of the `edit` mode. + +Edit Mode + + +To get acquainted with objects and methods to fetch and visualize data check out the sections below: + +### Data fetching methods + +To retrieve data from BE the following methods of `repo` object + +| Method | Description | +| -------- | ----------- | +| `fetch_metrics` | Repo metrics | +| `fetch_images` | Repo images | +| `fetch_audios` | Repo audios | +| `fetch_figures` | Repo figures | +| `fetch_texts` | Repo texts | + +All the methods accept a query parameter which defaults to `True` (fetches all the available sequences). + +The results of this +Example: + +```python +```aim +metrics = repo.fetch_metrics('metric.name == "loss"') +linechart = LineChart(metrics) +```\ +``` + + +### Visualization objects and methods + +- `LineChart` + +Signature: +`LineChart(data, x, y)` + +Parameters: + +| name | type | default | default | +|-----|------------|---------|-------| +| `data` | `List[dict]` | required| the data to be plotted | +| `x`| `str` | `steps` | the path to the property for the x-axis value (for fetched metrics available options are `epochs`, `timestamps`)| +| `y`| `str` | `values`| the path to the property for the y-axis value | + +Example: + +```aim +metrics = repo.fetch_metrics() +linechart = LineChart(metrics, x='timestamps') +``` + +- `ImagesList` + +Signature: +`ImagesList(data)` + +Images List + +Parameters: + +| name | type | default | default | +|-----|------------|---------|-------| +| `data` | `List[dict]` | required| the data to be plotted | + +Example: + +``` +images = repo.fetch_images() +ImagesList(images) +``` + + +- `AudiosList` + +Signature: +`AudiosList(data)` + +Parameters: + +| name | type | default | default | +|-----|------------|---------|-------| +| `data` | `List[dict]` | required | the data to be plotted | + +Example: +``` +audios = repo.fetch_audios() +AudiosList(audios) +``` +- `FiguresList` + +Signature: +`FiguresList(data)` + +Parameters: + +| name | type | default | default | +|-----|------------|---------|-------| +| `data` | `List[dict]` | required| the data to be plotted | + +Example: +``` +figures = repo.fetch_figures() +FiguresList(figures) +``` +- `TextsList` + +Signature: +`TextsList(data)` + +Parameters: + +| name | type | default | default | +|-----|------------|---------|-------| +| `data` | `List[dict]` | required| the data to be plotted | + + + Example: +``` +texts = repo.fetch_texts() +TextsList(texts) +``` + + +All the aforementioned objects have `group` method available to them: + +```python +def group(prop, values=[]): + ... +``` +`prop`- name of the property to be grouped by. Available options are: `color`, `stroke_style`, `row`, `column` + +`value`- list of values of sequence fields to be grouped by. Available fields are all those fields that are also available in grouping options of the explorer pages. + +The `group` method can be applied multiple times sequentially. + +Example: +``` +metrics = repo.fetch_metrics() +linechart = LineChart(metrics) +linechart.group('color', ['run.hash']) +linechart.group('row', ['metric_name']) +``` + +Grouping Example + +### Search Report +You can easily find the report in a big pile with the search ba. +Search Report + +### Delete Report + +You can find the `Delete` button under the options button in the upper right corner of the report card. +It will open a modal, where you can confirm or cancel the deletion. + +Delete Report