Scala mllib 2.2.0 k means. Number of runs Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) 2019 Moderator Election Q&A - Questionnaire 2019 Community Moderator Election ResultsData Science Tools Using ScalaPlotting libraries for Scala on ZeppelinDistributed k-means in SparkSpark Scala alternative Machine Learning Library?Scala vs Java if you're NOT going to use Spark?Join two dataframes - Spark MllibHashing trick with random forest in scalaWhat is the best deep learning library for scala?Scala RDD operationMultidimensional regression in Scala

What did Turing mean when saying that "machines cannot give rise to surprises" is due to a fallacy?

Centre cell contents vertically

Is this Half dragon Quaggoth Balanced

Trying to understand entropy as a novice in thermodynamics

Sally's older brother

Order between one to one functions and their inverses

Does the universe have a fixed centre of mass?

How to make an animal which can only breed for a certain number of generations?

Where and when has Thucydides been studied?

Releasing Patch File for BSD3 Licensed Project

"Destructive power" carried by a B-52?

Can haste grant me and my beast master companion extra attacks?

What are some likely causes to domain member PC losing contact to domain controller?

Did any compiler fully use 80-bit floating point?

How do Java 8 default methods hеlp with lambdas?

Does a random sequence of vectors span a Hilbert space?

Statistical analysis applied to methods coming out of Machine Learning

Is there any significance to the prison numbers of the Beagle Boys starting with 176-?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

Is a copyright notice with a non-existent name be invalid?

Why not use the yoke to control yaw, as well as pitch and roll?

Flight departed from the gate 5 min before scheduled departure time. Refund options

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Determine whether an integer is a palindrome



Scala mllib 2.2.0 k means. Number of runs



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
2019 Moderator Election Q&A - Questionnaire
2019 Community Moderator Election ResultsData Science Tools Using ScalaPlotting libraries for Scala on ZeppelinDistributed k-means in SparkSpark Scala alternative Machine Learning Library?Scala vs Java if you're NOT going to use Spark?Join two dataframes - Spark MllibHashing trick with random forest in scalaWhat is the best deep learning library for scala?Scala RDD operationMultidimensional regression in Scala










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)?










share|improve this question











$endgroup$
















    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)?










    share|improve this question











    $endgroup$














      1












      1








      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)?










      share|improve this question











      $endgroup$




      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)?







      k-means scala






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago









      Stephen Rauch

      1,52551330




      1,52551330










      asked Oct 8 '18 at 21:25









      Jake Jake

      1061




      1061




















          1 Answer
          1






          active

          oldest

          votes


















          0












          $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.






          share|improve this answer









          $endgroup$













            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "557"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f39390%2fscala-mllib-2-2-0-k-means-number-of-runs%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0












            $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.






            share|improve this answer









            $endgroup$

















              0












              $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.






              share|improve this answer









              $endgroup$















                0












                0








                0





                $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.






                share|improve this answer









                $endgroup$



                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                Sean OwenSean Owen

                4,25642238




                4,25642238



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Data Science Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f39390%2fscala-mllib-2-2-0-k-means-number-of-runs%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown