public class ElementwiseProduct extends UnaryTransformer<Vector,Vector,ElementwiseProduct> implements DefaultParamsWritable
| Constructor and Description |
|---|
ElementwiseProduct() |
ElementwiseProduct(String uid) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
getScalingVec() |
static ElementwiseProduct |
load(String path) |
static MLReader<T> |
read() |
Param<Vector> |
scalingVec()
the vector to multiply with input vectors
|
ElementwiseProduct |
setScalingVec(Vector value) |
String |
toString() |
StructType |
transformSchema(StructType schema)
Check transform validity and derive the output schema from the input schema.
|
String |
uid()
An immutable unique ID for the object and its derivatives.
|
copy, inputCol, outputCol, setInputCol, setOutputCol, transformtransform, transform, transformparamswritesavegetInputColgetOutputColclear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn$init$, initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, initLock, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, org$apache$spark$internal$Logging$$log__$eq, org$apache$spark$internal$Logging$$log_, uninitializepublic ElementwiseProduct(String uid)
public ElementwiseProduct()
public static ElementwiseProduct load(String path)
public static MLReader<T> read()
public String uid()
Identifiableuid in interface Identifiablepublic Param<Vector> scalingVec()
public ElementwiseProduct setScalingVec(Vector value)
public Vector getScalingVec()
public StructType transformSchema(StructType schema)
PipelineStage
We check validity for interactions between parameters during transformSchema and
raise an exception if any parameter value is invalid. Parameter value checks which
do not depend on other parameters are handled by Param.validate().
Typical implementation should first conduct verification on schema change and parameter validity, including complex parameter interaction checks.
transformSchema in class UnaryTransformer<Vector,Vector,ElementwiseProduct>schema - (undocumented)public String toString()
toString in interface IdentifiabletoString in class Object