Closed bdelespierre closed 2 years ago
$kmeans = new Kmeans(new RandomInitialization()); // fit = clusterize (we should rename this method) $result = $kmeans->fit($points, maxIter: 300); echo $result->getIterations(); // never more than 300
Proposed change