Wrapper class to compose multiple BaseMetric
instances.
metrics (dict or BaseMetric or Sequence) – The config of metrics.
Meta info of the dataset.
Optional[dict]
Invoke evaluate
method of each metric and collect the metrics dictionary.
size (int) – Length of the entire validation dataset. When batch size > 1, the dataloader may pad some data samples to make sure all ranks have the same length of dataset slice. The collect_results
function will drop the padded data based on this size.
Evaluation results of all metrics. The keys are the names of the metrics, and the values are corresponding results.
Offline evaluate the dumped predictions on the given data .
data_samples (Sequence) – All predictions and ground truth of the model and the validation set.
data (Sequence, optional) – All data of the validation set.
chunk_size (int) – The number of data samples and predictions to be processed in a batch.
Convert BaseDataSample
to dict and invoke process method of each metric.
data_samples (Sequence[BaseDataElement]) – predictions of the model, and the ground truth of the validation set.
data_batch (Any, optional) – A batch of data from the dataloader.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4