Convert a sequence and a given label to an equivalent Spark LabeledPoint object.
Convert a sequence and a given label to an equivalent Spark LabeledPoint object. Conversion is aware of whether underlying sequence types are sparse or dense.
A label to use for the LabeledPoint object
Convert a sequence of doubles to an equivalent Spark Vector.
Convert a sequence of doubles to an equivalent Spark Vector. Conversion is aware of whether underlying sequence types are sparse or dense.
A new Spark Vector equivalent to the input sequence
provides conversions from various Seq[Double] subclasses to Spark vectors