I am working with the mllib.optimization.GradientDescent class and I'm confused about how to set a custom loss function with setGradient?
For instance, if I wanted my loss function to be x^2 how would I go about setting it using setGradient? -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Setting-a-custom-loss-function-for-GradientDescent-tp22263.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org