incerto.active.MarginAcquisition#

class incerto.active.MarginAcquisition[source]#

Bases: BaseAcquisition

Margin sampling acquisition.

Select samples with smallest margin between top-2 predictions.

Reference:

Scheffer et al., “Active Hidden Markov Models for Information Extraction” (2001)

__init__()#

Methods

__init__()

score(model, x, **kwargs)

Compute margin scores.

score(model, x, **kwargs)[source]#

Compute margin scores.

Parameters:
Return type:

Tensor