Interface ALSParams
- All Superinterfaces:
- ALSModelParams,- HasBlockSize,- HasCheckpointInterval,- HasMaxIter,- HasPredictionCol,- HasRegParam,- HasSeed,- Identifiable,- Params,- Serializable
- All Known Implementing Classes:
- ALS
public interface ALSParams
extends ALSModelParams, HasMaxIter, HasRegParam, HasCheckpointInterval, HasSeed
Common params for ALS.
- 
Method SummaryModifier and TypeMethodDescriptionalpha()Param for the alpha parameter in the implicit preference formulation (nonnegative).Param for StorageLevel for ALS model factors.doublegetAlpha()booleanbooleanintintintgetRank()Param to decide whether to use implicit preference.Param for StorageLevel for intermediate datasets.Param for whether to apply nonnegativity constraints.Param for number of item blocks (positive).Param for number of user blocks (positive).rank()Param for rank of the matrix factorization (positive).Param for the column name for ratings.validateAndTransformSchema(StructType schema) Validates and transforms the input schema.Methods inherited from interface org.apache.spark.ml.recommendation.ALSModelParamscheckIntegers, coldStartStrategy, getColdStartStrategy, getItemCol, getUserCol, itemCol, userColMethods inherited from interface org.apache.spark.ml.param.shared.HasBlockSizeblockSize, getBlockSizeMethods inherited from interface org.apache.spark.ml.param.shared.HasCheckpointIntervalcheckpointInterval, getCheckpointIntervalMethods inherited from interface org.apache.spark.ml.param.shared.HasMaxItergetMaxIter, maxIterMethods inherited from interface org.apache.spark.ml.param.shared.HasPredictionColgetPredictionCol, predictionColMethods inherited from interface org.apache.spark.ml.param.shared.HasRegParamgetRegParam, regParamMethods inherited from interface org.apache.spark.ml.util.IdentifiabletoString, uidMethods inherited from interface org.apache.spark.ml.param.Paramsclear, 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, shouldOwn
- 
Method Details- 
alphaDoubleParam alpha()Param for the alpha parameter in the implicit preference formulation (nonnegative). Default: 1.0- Returns:
- (undocumented)
 
- 
finalStorageLevelParam for StorageLevel for ALS model factors. Pass in a string representation ofStorageLevel. Default: "MEMORY_AND_DISK".- Returns:
- (undocumented)
 
- 
getAlphadouble getAlpha()
- 
getFinalStorageLevelString getFinalStorageLevel()
- 
getImplicitPrefsboolean getImplicitPrefs()
- 
getIntermediateStorageLevelString getIntermediateStorageLevel()
- 
getNonnegativeboolean getNonnegative()
- 
getNumItemBlocksint getNumItemBlocks()
- 
getNumUserBlocksint getNumUserBlocks()
- 
getRankint getRank()
- 
getRatingColString getRatingCol()
- 
implicitPrefsBooleanParam implicitPrefs()Param to decide whether to use implicit preference. Default: false- Returns:
- (undocumented)
 
- 
intermediateStorageLevelParam for StorageLevel for intermediate datasets. Pass in a string representation ofStorageLevel. Cannot be "NONE". Default: "MEMORY_AND_DISK".- Returns:
- (undocumented)
 
- 
nonnegativeBooleanParam nonnegative()Param for whether to apply nonnegativity constraints. Default: false- Returns:
- (undocumented)
 
- 
numItemBlocksIntParam numItemBlocks()Param for number of item blocks (positive). Default: 10- Returns:
- (undocumented)
 
- 
numUserBlocksIntParam numUserBlocks()Param for number of user blocks (positive). Default: 10- Returns:
- (undocumented)
 
- 
rankIntParam rank()Param for rank of the matrix factorization (positive). Default: 10- Returns:
- (undocumented)
 
- 
ratingColParam for the column name for ratings. Default: "rating"- Returns:
- (undocumented)
 
- 
validateAndTransformSchemaValidates and transforms the input schema.- Parameters:
- schema- input schema
- Returns:
- output schema
 
 
-