titus.producer.kmeans.clusterJumped

titus.producer.kmeans.clusterJumped()[source]

Generates a stopping condition that stops if no clusters jumped (reset to a random point because of encounting nan).

Return type:callable that takes iterationNumber, corrections, values, datasetSize as arguments
Returns:stopping condition function