SingleDatasetScalarPerformance#
- class SingleDatasetScalarPerformance[source]#
Calculate a performance metric as a scalar for a given model and a given dataset.
- Parameters
- metric: Metric, default: None
An ignite.Metric object whose score should be used. If None is given, use the default metric.
- reduce: torch function, default: None
The function to reduce the scores tensor into a single scalar. For metrics that return a scalar use None (default).
- metric_name: str, default: None
A name for the metric to show in the check results.
- reduce_name: str, default: None
A name for the reduce function to show in the check results.
- __init__(metric: Optional[Metric] = None, reduce: Optional[Callable] = None, metric_name: Optional[str] = None, reduce_name: Optional[str] = None, **kwargs)[source]#
- __new__(*args, **kwargs)#
Methods
Add new condition function to the check. |
|
|
Add condition - the result is greater than the threshold. |
|
Add condition - the result is greater than the threshold. |
|
Add condition - the result is greater than the threshold. |
Add condition - the result is greater than the threshold. |
|
Remove all conditions from this check instance. |
|
Compute the metric result using the ignite metrics compute method and reduce to a scalar. |
|
Run conditions on given result. |
|
Finalize the check result by adding the check instance and processing the conditions. |
|
Initialize the metric for the check, and validate task type is relevant. |
|
Return check metadata. |
|
Name of class in split camel case. |
|
Return parameters to show when printing the check. |
|
Remove given condition by index. |
|
|
Run check. |
Update the metrics by passing the batch to ignite metric update method. |