StoppingRule

scalation.optimization.StoppingRule
trait StoppingRule(upLimit: Int)

The StoppingRule trait provides stopping rules for early termination in iterative optimization algorithms.

Value parameters

upLimit

the number upward (loss increasing) steps allowed

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

Return the best solution found.

Return the best solution found.

Attributes

def stopWhen(loss: Double, x: VectorD): FuncVec

Stop when too many steps have the loss function (e.g., sse) increasing. Signal a stopping condition by returning the best parameter vector, else null.

Stop when too many steps have the loss function (e.g., sse) increasing. Signal a stopping condition by returning the best parameter vector, else null.

Value parameters

loss

the current value of the loss function (e.g., sum of squared errors)

x

the current value of the parameter vector

Attributes