Gradient boosting

import  org.apache.spark.mllib.linalg.Vector so you would not need so long line down here