-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add logging for client metrics, create logging.md (#24)
- Loading branch information
1 parent
73eb5cf
commit 2b71fbe
Showing
8 changed files
with
141 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Logging Documentation | ||
|
||
This document provides a detailed overview of what is being logged in the Sonar setup. | ||
|
||
## Table of Contents | ||
|
||
1. [Overview](#overview) | ||
2. [Logging Types](#logging-types) | ||
3. [Log Sources](#log-sources) | ||
4. [Log Details](#log-details) | ||
|
||
## Overview | ||
|
||
This documentation aims to provide transparency on the logging mechanisms implemented in the Sonar project. It includes information on the types of data being logged, their sources, formats, and purposes. | ||
|
||
## Logging Types | ||
|
||
- **DEBUG:** Detailed information, typically of interest only when diagnosing problems. | ||
- **INFO:** Confirmation that things are working as expected. | ||
- **Tensorboard logging**: Logging specific metrics, images, and other data to TensorBoard for visualization and analysis. | ||
- Console Logging: Logs a message to the console. | ||
- Scalar Logging: Logs scalar values to TensorBoard for tracking metrics(loss, accuracy) over time. | ||
- Image Logging: Logs images to both a file and TensorBoard for visual analysis. | ||
|
||
## Log Sources | ||
|
||
| Component/Module | Data Logged | Log Level | Format | Storage Location | Frequency/Trigger | | ||
|--------------------|--------------------------------------------------|---------------|-------------|-------------------------------------|----------------------------------------| | ||
| Model Training (FL) | Aggregated model metrics, client updates | INFO, DEBUG | Plain text | `./expt_dump/<experiment_name>/logs/client_<client_index>/summary.txt` | On every FL round | ||
|
||
## Log Details | ||
|
||
### Federated Learning | ||
Logs aggregated model metrics (loss and accuracy) and updates from clients to track the overall progress and performance of the federated learning process. Additionally, logs include training loss and accuracy from individual clients. Also logs communication events between the server and clients to monitor interactions and data exchange. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters