Errors
Metrics for collecting and summarizing prediction error messages.
Classes:
| Name | Description |
|---|---|
ErrorCollector |
Collect error messages from predictions and summarize their frequencies. |
ErrorCollector(show_errors=False, type_separator=': ')
Bases: Metric
Collect error messages from model predictions and summarize their occurrences.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
show_errors
|
bool
|
If |
False
|
type_separator
|
str
|
Separator used to split error messages into type and details. |
': '
|
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
show_errors
|
bool
|
If |
False
|
type_separator
|
str
|
Separator used to split error messages into type and details. |
': '
|
Source code in src/kibad_llm/metrics/errors.py
25 26 27 28 29 30 31 32 33 34 | |
reset()
Reset the collected error state.
Source code in src/kibad_llm/metrics/errors.py
36 37 38 | |