class ElementwiseProduct extends VectorTransformer
Outputs the Hadamard product (i.e., the element-wise product) of each input vector with a provided "weight" vector. In other words, it scales each column of the dataset by a scalar multiplier.
- Annotations
- @Since("1.4.0")
- Source
- ElementwiseProduct.scala
- Alphabetic
- By Inheritance
- ElementwiseProduct
- VectorTransformer
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- val scalingVec: Vector
- Annotations
- @Since("1.4.0")
- def transform(vector: Vector): Vector
Does the hadamard product transformation.
Does the hadamard product transformation.
- vector
vector to be transformed.
- returns
transformed vector.
- Definition Classes
- ElementwiseProduct → VectorTransformer
- Annotations
- @Since("1.4.0")
- def transform(data: JavaRDD[Vector]): JavaRDD[Vector]
Applies transformation on a JavaRDD[Vector].
Applies transformation on a JavaRDD[Vector].
- data
JavaRDD[Vector] to be transformed.
- returns
transformed JavaRDD[Vector].
- Definition Classes
- VectorTransformer
- Annotations
- @Since("1.1.0")
- def transform(data: RDD[Vector]): RDD[Vector]
Applies transformation on an RDD[Vector].
Applies transformation on an RDD[Vector].
- data
RDD[Vector] to be transformed.
- returns
transformed RDD[Vector].
- Definition Classes
- VectorTransformer
- Annotations
- @Since("1.1.0")