battlecook
battlecook
Implementing the elbow method is quite expensive to implement. getTotalVariance() is correct for implementing the elbow method. But implementing the elbow method requires more implementations. As you can see, kmeans...
Oh, that's right. Then I understood. great.
It would be good to provide this function as an option. Because the added points will also affect the creation of the cluster. Clustering 100000 users and clustering 100100 users...
looks good 👍
Sorry for checking late. (I confirmed that it was committed to pr.) I think it's fine. But I think we'll have to do some more work to be more confident...
If you're considering multithreading, fibers might be an option too. https://php.watch/versions/8.1/fibers
This feature is available in php 8.1. Unfortunately, 8.1 is still in beta. According to the php team, rc2 (release candidate) will be released on "16 September 2021". https://www.php.net/index.php#id2021-09-02-1
Great. Let's go ahead with your plan!
Is it serialized when paused?
I think it's okay to provide a pause function to the user.