construct a Preprocessing that convert (Feature, Label) tuple to a Sample.
The returned Preprocessing is robust for the case label = None, in which the
Sample is derived from Feature only.
F
data type from feature column, E.g. Array[_] or Vector
L
data type from label column, E.g. Float, Double, Array[_] or Vector
Linear Supertypes
Preprocessing[(F, Option[L]), Sample[T]], Transformer[(F, Option[L]), Sample[T]], Serializable, Serializable, AnyRef, Any
construct a Preprocessing that convert (Feature, Label) tuple to a Sample. The returned Preprocessing is robust for the case label = None, in which the Sample is derived from Feature only.
data type from feature column, E.g. Array[_] or Vector
data type from label column, E.g. Float, Double, Array[_] or Vector