scala - In mllib LinearRegressionWithSGD, I can not control numIterations, why? -


i have 1 ml task, 34461 samples , use linearregressionwithsgd train model. results of 2 training result(mse , correlation) same:

train model (setnumiterations(5))

val linearregressionwithsgd: linearregressionwithsgd = new linearregressionwithsgd() linearregressionwithsgd.setintercept(true) linearregressionwithsgd.optimizer.setstepsize(0.1) linearregressionwithsgd.optimizer.setnumiterations(5) 

train model (setnumiterations(10000))

val linearregressionwithsgd: linearregressionwithsgd = new linearregressionwithsgd() linearregressionwithsgd.setintercept(true) linearregressionwithsgd.optimizer.setstepsize(0.1) linearregressionwithsgd.optimizer.setnumiterations(10000) 

i can not control number of iterations, why?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -