I'm in a spot where I need to convert then save h2o4gpu Kmeans object to just a sklearn object.
I thought maybe I could just do this? I was expecting I would be able to save sklearn_model and load it, but I get error: AttributeError: 'KMeans' object has no attribute '_n_threads'
from h2o4gpu.solvers import KMeans as GPUKMeans
from sklearn.cluster import KMeans
...
gpu_model = GPUKMeans(n_clusters=num_clusters)
gpu_model.fit(embeddings)
sklearn_model = KMeans(n_clusters=num_clusters)
sklearn_model.cluster_centers_= gpu_model.cluster_centers_;
...
After digging into source code I found some code that was doing a similar thing: