The convergence check functions compare two weight matrices and returns the value of the convergence criterion describing the difference between the two weight matrices.
convCheck.relative(Wnew, Wold)convCheck.square(Wnew, Wold)
convCheck.absolute(Wnew, Wold)
Current weight matrix
Weight matrix from the previous iteration
Scalar value of the convergence criterion
convCheck.relative
: maximum of relative differences between
weights from two iterations
convCheck.square
: maximum of squared absolute
differences between weights from two iterations.
convCheck.absolute
: maximum of absolute differences
between weights from two iterations