public class ALSModel extends Model<ALSModel> implements ALSParams
| Constructor and Description |
|---|
ALSModel(ALS parent,
ParamMap fittingParamMap,
int k,
RDD<scala.Tuple2<Object,float[]>> userFactors,
RDD<scala.Tuple2<Object,float[]>> itemFactors) |
| Modifier and Type | Method and Description |
|---|---|
ParamMap |
fittingParamMap()
Fitting parameters, such that parent.fit(..., fittingParamMap) could reproduce the model.
|
ALS |
parent()
The parent estimator that produced this model.
|
ALSModel |
setPredictionCol(String value) |
DataFrame |
transform(DataFrame dataset,
ParamMap paramMap)
Transforms the dataset with provided parameter map as additional parameters.
|
org.apache.spark.sql.types.StructType |
transformSchema(org.apache.spark.sql.types.StructType schema,
ParamMap paramMap)
:: DeveloperAPI ::
|
transform, transformequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalpha, getAlpha, getImplicitPrefs, getItemCol, getNonnegative, getNumItemBlocks, getNumUserBlocks, getRank, getRatingCol, getUserCol, implicitPrefs, itemCol, nonnegative, numItemBlocks, numUserBlocks, rank, ratingCol, userCol, validateAndTransformSchemagetMaxIter, maxItergetRegParam, regParamgetPredictionCol, predictionColaddOutputColumn, checkInputColumn, explainParams, get, getParam, isSet, paramMap, params, set, set, validate, validateuidinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic ALS parent()
Modelpublic ParamMap fittingParamMap()
ModelfittingParamMap in class Model<ALSModel>public ALSModel setPredictionCol(String value)
public DataFrame transform(DataFrame dataset, ParamMap paramMap)
Transformertransform in class Transformerdataset - input datasetparamMap - additional parameters, overwrite embedded paramspublic org.apache.spark.sql.types.StructType transformSchema(org.apache.spark.sql.types.StructType schema,
ParamMap paramMap)
PipelineStageDerives the output schema from the input schema and parameters. The schema describes the columns and types of the data.
transformSchema in class PipelineStageschema - Input schema to this stageparamMap - Parameters passed to this stage