CustomClassificationScorer.is_attached#

CustomClassificationScorer.is_attached(engine: ~ignite.engine.engine.Engine, usage: ~typing.Union[str, ~ignite.metrics.metric.MetricUsage] = <ignite.metrics.metric.EpochWise object>) bool#

Checks if current metric is attached to provided engine. If attached, metric’s computed value is written to engine.state.metrics dictionary.

Args:

engine: the engine checked from which the metric should be attached usage: the usage of the metric. Valid string values should be

‘epoch_wise’ (default) or ‘batch_wise’.