org.apache.spark.ml.feature
Class ElementwiseProduct
Object
org.apache.spark.ml.PipelineStage
org.apache.spark.ml.Transformer
org.apache.spark.ml.UnaryTransformer<Vector,Vector,ElementwiseProduct>
org.apache.spark.ml.feature.ElementwiseProduct
- All Implemented Interfaces:
- java.io.Serializable, Logging, Params
public class ElementwiseProduct
- extends UnaryTransformer<Vector,Vector,ElementwiseProduct>
:: Experimental ::
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.
- See Also:
- Serialized Form
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.spark.Logging |
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning |
Methods inherited from interface org.apache.spark.ml.param.Params |
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, setDefault, shouldOwn, validateParams |
ElementwiseProduct
public ElementwiseProduct(String uid)
ElementwiseProduct
public ElementwiseProduct()
uid
public String uid()
scalingVec
public Param<Vector> scalingVec()
- the vector to multiply with input vectors
- Returns:
- (undocumented)
setScalingVec
public ElementwiseProduct setScalingVec(Vector value)
getScalingVec
public Vector getScalingVec()