Package org.apache.spark.ml.tuning
Interface CrossValidatorParams
- All Superinterfaces:
HasSeed,Identifiable,Params,Serializable,ValidatorParams
- All Known Implementing Classes:
CrossValidator,CrossValidatorModel
Params for
CrossValidator and CrossValidatorModel.-
Method Summary
Methods inherited from interface org.apache.spark.ml.util.Identifiable
toString, uidMethods inherited from interface org.apache.spark.ml.param.Params
clear, copy, copyValues, defaultCopy, defaultParamMap, estimateMatadataSize, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwnMethods inherited from interface org.apache.spark.ml.tuning.ValidatorParams
estimator, estimatorParamMaps, evaluator, getEstimator, getEstimatorParamMaps, getEvaluator, logTuningParams, transformSchemaImpl
-
Method Details
-
foldCol
Param for the column name of user specified fold number. Once this is specified,CrossValidatorwon't do random k-fold split. Note that this column should be integer type with range [0, numFolds) and Spark will throw exception on out-of-range fold numbers.- Returns:
- (undocumented)
-
getFoldCol
String getFoldCol() -
getNumFolds
int getNumFolds() -
numFolds
IntParam numFolds()Param for number of folds for cross validation. Must be >= 2. Default: 3- Returns:
- (undocumented)
-