StepBreakpointer#

class StepBreakpointer(max_steps)[исходный код]#

Базовые классы: Breakpointer

Stops the pipeline after a fixed number of iterations.

The counter is reset by reset(), which Pipeline.fit() calls before every fitting run, so each fit starts counting from zero.

Параметры:

max_steps (int) – Maximum number of iterations before stopping. Must be >= 1.

Переменные:

max_steps (int) – Maximum iteration limit.

Исключение:

ValueError – If max_steps is <= 0.

Methods

check(state)

Evaluate if the iteration limit has been reached.

reset()

Reset the iteration counter to zero.