MCPcopy Create free account
hub / github.com/modAL-python/modAL / custom_query_strategy

Function custom_query_strategy

examples/custom_query_strategies.py:94–96  ·  view source on GitHub ↗
(classifier, X, n_instances=1)

Source from the content-addressed store, hash-verified

92# defining the custom query strategy, which uses the linear combination of
93# classifier uncertainty and classifier margin
94def custom_query_strategy(classifier, X, n_instances=1):
95 utility = linear_combination(classifier, X)
96 return multi_argmax(utility, n_instances=n_instances)
97
98custom_query_learner = ActiveLearner(
99 estimator=GaussianProcessClassifier(1.0 * RBF(1.0)),

Callers

nothing calls this directly

Calls 2

multi_argmaxFunction · 0.90
linear_combinationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…