/// <summary> /// Create a hook that will stop training when a certain custom criteria is met with a custom time step. /// </summary> /// <param name="criteria">The custom criteria at which training shall be stopped.</param> /// <param name="timeStep">The time step of this hook (see <see cref="IHook"/>).</param> public StopTrainingHook(HookInvokeCriteria criteria, TimeStep timeStep) : this(timeStep) { On(criteria); }
/// <summary> /// Create a hook that will stop training when a certain custom criteria is met. /// Note: The time step defaults to every epoch for convenience, if that is not enough, use <see cref="StopTrainingHook(HookInvokeCriteria, TimeStep)"/>. /// </summary> /// <param name="criteria">The custom criteria at which training shall be stopped.</param> public StopTrainingHook(HookInvokeCriteria criteria) : this(criteria, new TimeStep(TimeScale.Epoch, 1)) { }