public class MultilayerPerceptronClassifier extends ProbabilisticClassifier<Vector,MultilayerPerceptronClassifier,MultilayerPerceptronClassificationModel> implements MultilayerPerceptronParams, DefaultParamsWritable
Constructor and Description |
---|
MultilayerPerceptronClassifier() |
MultilayerPerceptronClassifier(String uid) |
Modifier and Type | Method and Description |
---|---|
MultilayerPerceptronClassifier |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
static MultilayerPerceptronClassifier |
load(String path) |
static MLReader<T> |
read() |
MultilayerPerceptronClassifier |
setBlockSize(int value)
Sets the value of param
blockSize . |
MultilayerPerceptronClassifier |
setInitialWeights(Vector value)
Sets the value of param
initialWeights . |
MultilayerPerceptronClassifier |
setLayers(int[] value)
Sets the value of param
layers . |
MultilayerPerceptronClassifier |
setMaxIter(int value)
Set the maximum number of iterations.
|
MultilayerPerceptronClassifier |
setSeed(long value)
Set the seed for weights initialization if weights are not set
|
MultilayerPerceptronClassifier |
setSolver(String value)
Sets the value of param
solver . |
MultilayerPerceptronClassifier |
setStepSize(double value)
Sets the value of param
stepSize (applicable only for solver "gd"). |
MultilayerPerceptronClassifier |
setTol(double value)
Set the convergence tolerance of iterations.
|
String |
uid()
An immutable unique ID for the object and its derivatives.
|
setProbabilityCol, setThresholds
setRawPredictionCol
fit, setFeaturesCol, setLabelCol, setPredictionCol, transformSchema
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
blockSize, getBlockSize, getInitialWeights, getLayers, initialWeights, layers, solver
validateAndTransformSchema
getLabelCol, labelCol
featuresCol, getFeaturesCol
getPredictionCol, predictionCol
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
toString
getRawPredictionCol, rawPredictionCol
getProbabilityCol, probabilityCol
getThresholds, thresholds
getMaxIter, maxIter
getStepSize, stepSize
write
save
initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public MultilayerPerceptronClassifier(String uid)
public MultilayerPerceptronClassifier()
public static MultilayerPerceptronClassifier load(String path)
public static MLReader<T> read()
public String uid()
Identifiable
uid
in interface Identifiable
public MultilayerPerceptronClassifier setLayers(int[] value)
layers
.
value
- (undocumented)public MultilayerPerceptronClassifier setBlockSize(int value)
blockSize
.
Default is 128.
value
- (undocumented)public MultilayerPerceptronClassifier setSolver(String value)
solver
.
Default is "l-bfgs".
value
- (undocumented)public MultilayerPerceptronClassifier setMaxIter(int value)
value
- (undocumented)public MultilayerPerceptronClassifier setTol(double value)
value
- (undocumented)public MultilayerPerceptronClassifier setSeed(long value)
value
- (undocumented)public MultilayerPerceptronClassifier setInitialWeights(Vector value)
initialWeights
.
value
- (undocumented)public MultilayerPerceptronClassifier setStepSize(double value)
stepSize
(applicable only for solver "gd").
Default is 0.03.
value
- (undocumented)public MultilayerPerceptronClassifier copy(ParamMap extra)
Params
defaultCopy()
.copy
in interface Params
copy
in class Predictor<Vector,MultilayerPerceptronClassifier,MultilayerPerceptronClassificationModel>
extra
- (undocumented)