Evaluate
Package entrypoint for dataset evaluation.
Functions:
| Name | Description |
|---|---|
evaluate |
Evaluates a dataset containing predictions and references using a specified metric. |
main |
Helper function to inject the hydra config into |
evaluate(cfg)
Evaluates a dataset containing predictions and references using a specified metric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
DictConfig
|
OmegaConf configuration. See configs/evaluate.yaml for details. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
A dictionary with evaluation results. |
Source code in src/kibad_llm/evaluate.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
main(cfg)
Helper function to inject the hydra config into evaluate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
DictConfig
|
Evaluation config provided through hydra. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
The unchanged output of |
Source code in src/kibad_llm/evaluate.py
80 81 82 83 84 85 86 87 88 89 90 91 92 | |