How to load saved KMeans model (in ML Pipeline)?

Viewed 3057

I'm learning scala and am trying without success to load a model that I have run/fit on data. It took 6 hours to run and I'm afraid I'm going to have to rerun this if I can't figure out a way to save/load the output.

I ran the KMeans as part of a pipeline. I saved the output of the pipeline that I ran on my training dataset as 'model' and that was what I tried to load.

After running the model I was able to save(or at least I thought I was) it using:

model.write.overwrite().save("/analytics_shared/qoe/km_model")

My question is how do I load it back so I can then use it to cluster/score new data without having to rerun the training that takes 6 hours.

1 Answers
Related