Eval
Main evaluation script.
evaluate(cfg)
#
Evaluates given checkpoint on a datamodule testset.
This method is wrapped in optional @task_wrapper decorator, that controls the behavior during failure. Useful for multiruns, saving info about the crash, etc.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cfg
|
DictConfig
|
DictConfig configuration composed by Hydra. |
required |
Returns:
Type | Description |
---|---|
tuple[dict[str, Any], dict[str, Any]]
|
tuple[dict, dict] with metrics and dict with all instantiated objects. |
Source code in src/eval.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 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 |
|
main(cfg)
#
Main entry point for evaluation.
:param cfg: DictConfig configuration composed by Hydra.
Source code in src/eval.py
78 79 80 81 82 83 84 85 86 87 88 |
|