1
$\begingroup$

As per the documentation here, the runs parameter does nothing. I have looked at the actual Scala code for k means and it appears that the train method only does one start. There is no way to change this.

QUESTION: Am I correct that if I want 5 starts I need to write my own code that calls train 5 times (or until some criteria has been met)?

$\endgroup$

1 Answer 1

1
$\begingroup$

That's correct. It used to control making multiple starts at once but for various reasons this didn't work well, and was deprecated / made a no-op. I removed it for Spark 3.0.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.