Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve convergence system for MiniBatch algorithm
Fixes #113 Improve the convergence system for the MiniBatch algorithm in `src/mini_batch.jl` and add corresponding tests in `test/test90_minibatch.jl`. * **Adaptive Batch Size Mechanism** - Implement an adaptive batch size mechanism that adjusts based on the convergence rate. - Modify the batch size dynamically during the iterations. * **Early Stopping Criteria** - Introduce early stopping criteria by monitoring the change in cluster assignments and the stability of centroids. - Add a check to stop the algorithm if the labels and centroids remain unchanged over iterations. * **Tests for New Features** - Add tests for the adaptive batch size mechanism to ensure it adjusts the batch size correctly based on the convergence rate. - Add tests for early stopping criteria to ensure the algorithm stops when the change in cluster assignments or the stability of centroids is detected. - Add tests for improved initialization of centroids to ensure the algorithm converges successfully. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/PyDataBlog/ParallelKMeans.jl/issues/113?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information