public class Normalizer extends UnaryTransformer<Vector,Vector,Normalizer> implements DefaultParamsWritable
Constructor and Description |
---|
Normalizer() |
Normalizer(String uid) |
Modifier and Type | Method and Description |
---|---|
double |
getP() |
static Normalizer |
load(String path) |
DoubleParam |
p()
Normalization in L^p^ space.
|
static MLReader<T> |
read() |
Normalizer |
setP(double 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, transform
transform, transform, transform
params
write
save
getInputCol
getOutputCol
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, 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_, uninitialize
public static Normalizer load(String path)
public static MLReader<T> read()
public String uid()
Identifiable
uid
in interface Identifiable
public DoubleParam p()
public double getP()
public Normalizer setP(double value)
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,Normalizer>
schema
- (undocumented)public String toString()
toString
in interface Identifiable
toString
in class Object