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

Method _set_max

modAL/models/learners.py:391–396  ·  view source on GitHub ↗
(self, X: modALinput, y: modALinput)

Source from the content-addressed store, hash-verified

389 self.y_max = -np.inf
390
391 def _set_max(self, X: modALinput, y: modALinput) -> None:
392 max_idx = np.argmax(y)
393 y_max = y[max_idx]
394 if y_max > self.y_max:
395 self.y_max = y_max
396 self.X_max = retrieve_rows(X, max_idx)
397
398 def get_max(self) -> Tuple:
399 """

Callers 5

test_optimizer_PIMethod · 0.95
test_optimizer_EIMethod · 0.95
test_selectionMethod · 0.95
test_set_new_maxMethod · 0.95
teachMethod · 0.95

Calls 1

retrieve_rowsFunction · 0.90

Tested by 4

test_optimizer_PIMethod · 0.76
test_optimizer_EIMethod · 0.76
test_selectionMethod · 0.76
test_set_new_maxMethod · 0.76