public interface ClassifierParams extends PredictorParams, HasRawPredictionCol
| Modifier and Type | Method and Description |
|---|---|
RDD<org.apache.spark.ml.feature.Instance> |
extractInstances(Dataset<?> dataset,
int numClasses)
Extract
labelCol, weightCol(if any) and featuresCol from the given dataset,
and put it in an RDD with strong types. |
StructType |
validateAndTransformSchema(StructType schema,
boolean fitting,
DataType featuresDataType)
Validates and transforms the input schema with the provided param map.
|
extractInstances, extractInstancesgetLabelCol, labelColfeaturesCol, getFeaturesColgetPredictionCol, predictionColclear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwntoString, uidgetRawPredictionCol, rawPredictionColRDD<org.apache.spark.ml.feature.Instance> extractInstances(Dataset<?> dataset, int numClasses)
labelCol, weightCol(if any) and featuresCol from the given dataset,
and put it in an RDD with strong types.
Validates the label on the classifier is a valid integer in the range [0, numClasses).dataset - (undocumented)numClasses - (undocumented)StructType validateAndTransformSchema(StructType schema, boolean fitting, DataType featuresDataType)
PredictorParamsvalidateAndTransformSchema in interface PredictorParamsschema - input schemafitting - whether this is in fittingfeaturesDataType - SQL DataType for FeaturesType.
E.g., VectorUDT for vector features.