You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since resuming the algorithm is possible (see #28), why not give the user the ability to pause it as well?
Here's an implementation target:
$algo = newKmeans\Algorithm(newKmeans\RandomInitialization());
$aglo->registerIterationCallback(function ($algo) {
if ($algo->getStatus()->startedAt() > new \DateTime('1 hour ago')) {
return$algo->pause();
}
});
$result = $algo->clusterize($points, $nbClusters);
if ($result->getStatus()->isPaused()) {
echo"Clusterization ran for more than 1h and had to be paused.";
}
What do you think?
The text was updated successfully, but these errors were encountered:
Since resuming the algorithm is possible (see #28), why not give the user the ability to pause it as well?
Here's an implementation target:
What do you think?
The text was updated successfully, but these errors were encountered: