I'm really getting into how useful Rust is lately?
like I kept having issues at work that boiled down to
"I wish I could do this in R, but R is too slow.
I'll find a package that calls to C++.
Huh. None of them quite do what I want them to do, I want them to implement X"
And like with Rust I can just implement it myself.
So I wrote it as a really basic pointwise k-means clustering approach, so it has a cost function that evaluates each point in a cluster against the centroid of each comparison cluster, and tries to boost the gaps between groups while minimising the gaps in each internal group.
And then I'm running it within a genetic algorithm to optimize the cost function.
and it's like 90% done after 2 days of work, which I am _hyped_ about
recent issue was needing high dimensionality clustering, which is relatively straightforward.
But I couldn't find one that would consistently group them the same so I could sequentially add data, which was frustrating, and the one I did find had a warning in it
"if you're on mac or linux, please increase the stack limit to unlimited, or it'll crash"