Index
optimus_dl.recipe.metrics
¶
Metrics evaluation recipe module.
MetricsConfig
dataclass
¶
Bases: RegistryConfigStrict
Complete metrics evaluation configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
dict
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
<class 'dict'>
|
common
|
MetricsRecipeConfig
|
Configuration for metrics evaluation recipe common settings. |
<dynamic>
|
model
|
ModelConfig | None
|
|
None
|
data
|
DataConfig
|
|
'???'
|
criterion
|
CriterionConfig
|
|
'???'
|
metrics
|
dict[str, list[dict]]
|
Metric configurations mapped by dataset name |
<class 'dict'>
|
model_transforms
|
list[ModelTransformConfig]
|
List of model transforms to apply |
<dynamic>
|
loggers
|
list[MetricsLoggerConfig] | None
|
|
None
|
model_builder
|
Any
|
|
ModelBuilderConfig(_name='base')
|
criterion_builder
|
Any
|
|
CriterionBuilderConfig(_name='base')
|
data_builder
|
Any
|
|
DataBuilderConfig(_name='base')
|
checkpoint_manager
|
Any
|
|
CheckpointManagerConfig(_name='base')
|
logger_manager
|
Any
|
|
LoggerManagerConfig(_name='base')
|
evaluator
|
Any
|
|
EvaluatorConfig(_name='base')
|
Source code in optimus_dl/recipe/metrics/config.py
MetricsRecipe
¶
Recipe for evaluating models using the internal Metrics system.
Handles building the model, data pipelines, and executing the evaluation loop for all provided datasets, reporting metrics via the MetricEngine.
Source code in optimus_dl/recipe/metrics/base.py
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |
run()
¶
Run the complete evaluation pipeline.
Source code in optimus_dl/recipe/metrics/base.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |