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

Function modAL_EER

examples/runtime_comparison.py:122–129  ·  view source on GitHub ↗
(X, y, n_queries)

Source from the content-addressed store, hash-verified

120
121@timeit()
122def modAL_EER(X, y, n_queries):
123 modAL_learner = ActiveLearner(LogisticRegression(solver='liblinear', n_jobs=1, multi_class='ovr'),
124 query_strategy=expected_error_reduction,
125 X_training=X[[0, 50, 100]], y_training=y[[0, 50, 100]])
126
127 for _ in range(n_queries):
128 query_idx, query_inst = modAL_learner.query(X)
129 modAL_learner.teach(X[query_idx], y[query_idx])
130
131
132@timeit()

Callers 1

comparisonsFunction · 0.85

Calls 3

teachMethod · 0.95
ActiveLearnerClass · 0.90
queryMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…