> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# LossGraphNode - ComfyUI Built-in Node Documentation

> Complete documentation for the LossGraphNode node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/LossGraphNode/en.md)

The LossGraphNode creates a visual graph of training loss values over time and displays it as a preview image. It takes loss data from training processes and generates a line chart showing how the loss changes across training steps. The resulting graph includes axis labels and min/max loss values.

## Inputs

| Parameter         | Data Type | Required | Range | Description                                                     |
| ----------------- | --------- | -------- | ----- | --------------------------------------------------------------- |
| `loss`            | LOSS\_MAP | Yes      | -     | Loss map from training node.                                    |
| `filename_prefix` | STRING    | Yes      | -     | Prefix for the saved loss graph image. (default: "loss\_graph") |

## Outputs

| Output Name | Data Type | Description                                            |
| ----------- | --------- | ------------------------------------------------------ |
| `ui.images` | IMAGE     | The generated loss graph image displayed as a preview. |

***

**Source fingerprint (SHA-256):** `88164045339e4181cefc6ed3a2d3c35921b9cadc2977eb7406fad7e9b353f818`
