titus.producer.kmeans.printChange

titus.producer.kmeans.printChange(format='g')[source]

Generates a “stopping condition” that prints changes in values and never stops.

Parameters:format (string) – format string (“g” is general number, “8.3f” is 8-characters wide, 3-digits after the decimal floating point, etc.)
Return type:callable that takes iterationNumber, corrections, values, datasetSize as arguments
Returns:stopping condition function