- ignite.metrics.Fbeta(beta, average=True, precision=None, recall=None, output_transform=None, device=device(type='cpu'))#
Calculates F-beta score.
where is a positive real factor.
beta (float) – weight of precision in harmonic mean
average (bool) – if True, F-beta score is computed as the unweighted average (across all classes in multiclass case), otherwise, returns a tensor with F-beta score for each class in multiclass case.
output_transform (Optional[Callable]) – a callable that is used to transform the
process_function’s output into the form expected by the metric. It is used only if precision or recall are not provided.
device (Union[str, device]) – specifies which device updates are accumulated on. Setting the metric’s device to be the same as your
updatearguments ensures the
updatemethod is non-blocking. By default, CPU.
MetricsLambda, F-beta metric
- Return type