You can use the constructor that accepts a BoostingStrategy object, which will allow you to set the tree strategy (and other hyperparameters as well).
*GradientBoostedTrees <http://spark.apache.org/docs/latest/api/java/org/apache/spark/mllib/tree/GradientBoostedTrees.html#GradientBoostedTrees(org.apache.spark.mllib.tree.configuration.BoostingStrategy)>* (BoostingStrategy <http://spark.apache.org/docs/latest/api/java/org/apache/spark/mllib/tree/configuration/BoostingStrategy.html> boostingStrategy) On Mon, Feb 29, 2016 at 9:21 AM, diplomatic Guru <diplomaticg...@gmail.com> wrote: > Hello guys, > > I think the default Loss algorithm is Squared Error for regression, but > how do I change that to Absolute Error in Java. > > Could you please show me an example? > > >