You can compute the standard deviations of the training data using Statistics.colStats and then compare them with model coefficients to compute feature importance. -Xiangrui
On Fri, Mar 13, 2015 at 11:35 AM, Natalia Connolly <natalia.v.conno...@gmail.com> wrote: > Hello, > > While running an SVMClassifier in spark, is there any way to print out > the most important features the model selected? I see there's a way to > print out the weights but I am not sure how to associate them with the input > features, by name or in any other way. Any help would be appreciated. > > I am using spark 1.2.1 and my code is in Java. > > Thanks! > > Natalia > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org