public class MultilayerPerceptronClassifier extends Predictor<Vector,MultilayerPerceptronClassifier,MultilayerPerceptronClassificationModel>
| Constructor and Description |
|---|
MultilayerPerceptronClassifier() |
MultilayerPerceptronClassifier(String uid) |
| Modifier and Type | Method and Description |
|---|---|
IntParam |
blockSize()
Block size for stacking input data in matrices to speed up the computation.
|
MultilayerPerceptronClassifier |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
Param<String> |
featuresCol()
Param for features column name.
|
int |
getBlockSize() |
String |
getFeaturesCol() |
String |
getLabelCol() |
int[] |
getLayers() |
String |
getPredictionCol() |
Param<String> |
labelCol()
Param for label column name.
|
IntArrayParam |
layers()
Layer sizes including input size and output size.
|
Param<String> |
predictionCol()
Param for prediction column name.
|
MultilayerPerceptronClassifier |
setBlockSize(int value) |
MultilayerPerceptronClassifier |
setLayers(int[] value) |
MultilayerPerceptronClassifier |
setMaxIter(int value)
Set the maximum number of iterations.
|
MultilayerPerceptronClassifier |
setSeed(long value)
Set the seed for weights initialization.
|
MultilayerPerceptronClassifier |
setTol(double value)
Set the convergence tolerance of iterations.
|
String |
uid()
An immutable unique ID for the object and its derivatives.
|
StructType |
validateAndTransformSchema(StructType schema,
boolean fitting,
DataType featuresDataType)
Validates and transforms the input schema with the provided param map.
|
fit, setFeaturesCol, setLabelCol, setPredictionCol, transformSchemaequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn, validateParamstoStringinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic MultilayerPerceptronClassifier(String uid)
public MultilayerPerceptronClassifier()
public String uid()
Identifiableuid in interface Identifiablepublic MultilayerPerceptronClassifier setLayers(int[] value)
public MultilayerPerceptronClassifier setBlockSize(int value)
public MultilayerPerceptronClassifier setMaxIter(int value)
value - (undocumented)public MultilayerPerceptronClassifier setTol(double value)
value - (undocumented)public MultilayerPerceptronClassifier setSeed(long value)
value - (undocumented)public MultilayerPerceptronClassifier copy(ParamMap extra)
Paramscopy in interface Paramscopy in class Predictor<Vector,MultilayerPerceptronClassifier,MultilayerPerceptronClassificationModel>extra - (undocumented)defaultCopy()public IntArrayParam layers()
public int[] getLayers()
public IntParam blockSize()
public int getBlockSize()
public StructType validateAndTransformSchema(StructType schema, boolean fitting, DataType featuresDataType)
schema - input schemafitting - whether this is in fittingfeaturesDataType - SQL DataType for FeaturesType.
E.g., VectorUDT for vector features.public Param<String> labelCol()
public String getLabelCol()
public Param<String> featuresCol()
public String getFeaturesCol()
public Param<String> predictionCol()
public String getPredictionCol()