skactiveml.pool.variation_ratios#

skactiveml.pool.variation_ratios(votes)[source]#

Calculates the variation ratios for measuring the level of disagreement in QueryByCommittee.

Parameters
votesarray-like of shape (n_samples, n_estimators)

The class predicted by the estimators for each sample.

Returns
scoresnp.ndarray of shape (n_samples,)

The variation ratios of each row in votes.

References

1

W. H. Beluch, T. Genewein, A. Nürnberger, and J. M. Köhler. The Power of Ensembles for Active Learning in Image Classification. In IEEE/CVF Conf. Comput. Vis. Pattern Recognit., pages 9368–9377, 2018.