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

Method get_max

modAL/models/learners.py:398–405  ·  view source on GitHub ↗

Gives the highest value so far. Returns: The location of the currently best value and the value itself.

(self)

Source from the content-addressed store, hash-verified

396 self.X_max = retrieve_rows(X, max_idx)
397
398 def get_max(self) -> Tuple:
399 """
400 Gives the highest value so far.
401
402 Returns:
403 The location of the currently best value and the value itself.
404 """
405 return self.X_max, self.y_max
406
407 def teach(self, X: modALinput, y: modALinput, bootstrap: bool = False, only_new: bool = False, **fit_kwargs) -> None:
408 """

Callers 1

test_get_maxMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_get_maxMethod · 0.76