> ## 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

> The LossGraphNode creates a line chart of training loss values over training steps and shows it as a preview image.

The LossGraphNode creates a line chart of training loss values over training steps and shows it as a preview image. It reads loss values from a training node, plots them on a graph with labeled axes and min/max loss values, and returns the graph as an image preview in the UI. This node is marked as experimental and is an output node.

## Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `loss` | Loss map from training node. It must contain a `loss` key with a list of numeric loss values. | LOSS\_MAP | Yes | - |
| `filename_prefix` | Prefix for the saved loss graph image. (default: "loss\_graph") | STRING | Yes | - |

## Outputs

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

> 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)

***

**Source fingerprint (SHA-256):** `b1f0b72a03d4ce2d9461fc6e312bd1e847455f7dd5227667876a945494ea8cdb`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.