Verifies eval shared models and normnalizes to produce a single list.
tfma.utils.verify_and_update_eval_shared_models(
eval_shared_model: Optional[tfma.types.EvalSharedModel
]
) -> Optional[List[types.EvalSharedModel]]
The output is normalized such that if a list or dict contains a single entry,
the model name will always be empty.
Args |
eval_shared_model
|
None, a single model, a list of models, or a dict of
models keyed by model name.
|
Returns |
A list of models or None.
|
Raises |
ValueError if dict is passed and keys don't match model names or a
multi-item list is passed without model names.
|