public interface ALSParams extends Params, HasMaxIter, HasRegParam, HasPredictionCol, HasCheckpointInterval
Modifier and Type | Method and Description |
---|---|
DoubleParam |
alpha()
Param for the alpha parameter in the implicit preference formulation.
|
double |
getAlpha() |
boolean |
getImplicitPrefs() |
String |
getItemCol() |
boolean |
getNonnegative() |
int |
getNumItemBlocks() |
int |
getNumUserBlocks() |
int |
getRank() |
String |
getRatingCol() |
String |
getUserCol() |
BooleanParam |
implicitPrefs()
Param to decide whether to use implicit preference.
|
Param<String> |
itemCol()
Param for the column name for item ids.
|
BooleanParam |
nonnegative()
Param for whether to apply nonnegativity constraints.
|
IntParam |
numItemBlocks()
Param for number of item blocks.
|
IntParam |
numUserBlocks()
Param for number of user blocks.
|
IntParam |
rank()
Param for rank of the matrix factorization.
|
Param<String> |
ratingCol()
Param for the column name for ratings.
|
Param<String> |
userCol()
Param for the column name for user ids.
|
StructType |
validateAndTransformSchema(StructType schema,
ParamMap paramMap)
Validates and transforms the input schema.
|
getMaxIter, maxIter
getRegParam, regParam
getPredictionCol, predictionCol
checkpointInterval, getCheckpointInterval
addOutputColumn, checkInputColumn, explainParams, get, getParam, isSet, paramMap, params, set, set, validate, validate
uid
IntParam rank()
int getRank()
IntParam numUserBlocks()
int getNumUserBlocks()
IntParam numItemBlocks()
int getNumItemBlocks()
BooleanParam implicitPrefs()
boolean getImplicitPrefs()
DoubleParam alpha()
double getAlpha()
Param<String> userCol()
String getUserCol()
Param<String> itemCol()
String getItemCol()
Param<String> ratingCol()
String getRatingCol()
BooleanParam nonnegative()
boolean getNonnegative()
StructType validateAndTransformSchema(StructType schema, ParamMap paramMap)
schema
- input schemaparamMap
- extra params