apply#

Learner.apply(func: Callable[[...], Any], *_args: Any, **_kwargs: Any) → Any[source]#

Calls func with this Learner as the first argument.

Parameters:
  • func (Callable[[...], Any]) – The function to call. Takes the Learner as its first argument.

  • *_args (Any) – Positional arguments to pass to func after the Learner.

  • **_kwargs (Any) – Keyword arguments to pass to func.

Returns:

The return value of func.

Return type:

Any