use convergence calculation of the entropy instead of `max_iter`.
use convergence calculation of the entropy instead of
max_iter.