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

Function custom_query_strategy

tests/example_tests/custom_query_strategies.py:41–43  ·  view source on GitHub ↗
(classifier, X, n_instances=1)

Source from the content-addressed store, hash-verified

39# defining the custom query strategy, which uses the linear combination of
40# classifier uncertainty and classifier margin
41def custom_query_strategy(classifier, X, n_instances=1):
42 utility = linear_combination(classifier, X)
43 return multi_argmax(utility, n_instances=n_instances)
44
45custom_query_learner = ActiveLearner(
46 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…