titus.producer.kmeans.printValue

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

Generates a “stopping condition” that prints the current value 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