I'd like to refactor the library to a class, with an API similar to sklearn: http://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html I'll migrate to TypeScript at the same time. @mljs/collaborators WDYT?