class SARModel extends Model[SARModel] with BaseRecommendationModel with Wrappable with SARParams with ComplexParamsWritable with SynapseMLLogging
SAR Model
- Alphabetic
- By Inheritance
- SARModel
- SynapseMLLogging
- ComplexParamsWritable
- MLWritable
- SARParams
- RecommendationParams
- ALSParams
- HasSeed
- HasCheckpointInterval
- HasRegParam
- HasMaxIter
- Wrappable
- RWrappable
- PythonWrappable
- BaseWrappable
- BaseRecommendationModel
- ALSModelParams
- HasBlockSize
- HasPredictionCol
- Model
- Transformer
- PipelineStage
- Logging
- Params
- Serializable
- Serializable
- Identifiable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
$[T](param: Param[T]): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
activityTimeFormat: Param[String]
- Definition Classes
- SARParams
-
val
alpha: DoubleParam
- Definition Classes
- ALSParams
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
val
blockSize: IntParam
- Definition Classes
- HasBlockSize
-
def
checkIntegers(dataset: Dataset[_], colName: String): Column
- Attributes
- protected[org.apache.spark.ml.recommendation]
- Definition Classes
- ALSModelParams
-
final
val
checkpointInterval: IntParam
- Definition Classes
- HasCheckpointInterval
-
lazy val
classNameHelper: String
- Attributes
- protected
- Definition Classes
- BaseWrappable
-
final
def
clear(param: Param[_]): SARModel.this.type
- Definition Classes
- Params
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
coldStartStrategy: Param[String]
- Definition Classes
- ALSModelParams
-
def
companionModelClassName: String
- Attributes
- protected
- Definition Classes
- BaseWrappable
-
def
copy(extra: ParamMap): SARModel
- Definition Classes
- SARModel → Model → Transformer → PipelineStage → Params
-
def
copyValues[T <: Params](to: T, extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
-
lazy val
copyrightLines: String
- Attributes
- protected
- Definition Classes
- BaseWrappable
-
final
def
defaultCopy[T <: Params](extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
explainParam(param: Param[_]): String
- Definition Classes
- Params
-
def
explainParams(): String
- Definition Classes
- Params
-
final
def
extractParamMap(): ParamMap
- Definition Classes
- Params
-
final
def
extractParamMap(extra: ParamMap): ParamMap
- Definition Classes
- Params
-
val
finalStorageLevel: Param[String]
- Definition Classes
- ALSParams
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
get[T](param: Param[T]): Option[T]
- Definition Classes
- Params
-
def
getALSModel(uid: String, rank: Int, userFactors: DataFrame, itemFactors: DataFrame): ALSModel
- Definition Classes
- BaseRecommendationModel
-
def
getAlpha: Double
- Definition Classes
- ALSParams
-
final
def
getBlockSize: Int
- Definition Classes
- HasBlockSize
-
final
def
getCheckpointInterval: Int
- Definition Classes
- HasCheckpointInterval
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getColdStartStrategy: String
- Definition Classes
- ALSModelParams
-
final
def
getDefault[T](param: Param[T]): Option[T]
- Definition Classes
- Params
-
def
getFinalStorageLevel: String
- Definition Classes
- ALSParams
-
def
getImplicitPrefs: Boolean
- Definition Classes
- ALSParams
-
def
getIntermediateStorageLevel: String
- Definition Classes
- ALSParams
-
def
getItemCol: String
- Definition Classes
- ALSModelParams
- def getItemDataFrame: DataFrame
-
final
def
getMaxIter: Int
- Definition Classes
- HasMaxIter
-
def
getNonnegative: Boolean
- Definition Classes
- ALSParams
-
def
getNumItemBlocks: Int
- Definition Classes
- ALSParams
-
def
getNumUserBlocks: Int
- Definition Classes
- ALSParams
-
final
def
getOrDefault[T](param: Param[T]): T
- Definition Classes
- Params
-
def
getParam(paramName: String): Param[Any]
- Definition Classes
- Params
-
def
getParamInfo(p: Param[_]): ParamInfo[_]
- Definition Classes
- BaseWrappable
-
def
getPayload(methodName: String, numCols: Option[Int], executionSeconds: Option[Double], exception: Option[Exception]): Map[String, String]
- Attributes
- protected
- Definition Classes
- SynapseMLLogging
-
final
def
getPredictionCol: String
- Definition Classes
- HasPredictionCol
-
def
getRank: Int
- Definition Classes
- ALSParams
-
def
getRatingCol: String
- Definition Classes
- ALSParams
-
final
def
getRegParam: Double
- Definition Classes
- HasRegParam
-
final
def
getSeed: Long
- Definition Classes
- HasSeed
-
def
getUserCol: String
- Definition Classes
- ALSModelParams
- def getUserDataFrame: DataFrame
-
final
def
hasDefault[T](param: Param[T]): Boolean
- Definition Classes
- Params
-
def
hasParam(paramName: String): Boolean
- Definition Classes
- Params
-
def
hasParent: Boolean
- Definition Classes
- Model
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
implicitPrefs: BooleanParam
- Definition Classes
- ALSParams
-
def
initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
val
intermediateStorageLevel: Param[String]
- Definition Classes
- ALSParams
-
final
def
isDefined(param: Param[_]): Boolean
- Definition Classes
- Params
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isSet(param: Param[_]): Boolean
- Definition Classes
- Params
-
def
isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
val
itemCol: Param[String]
- Definition Classes
- ALSModelParams
- val itemDataFrame: DataFrameParam
-
def
log: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
def
logBase(info: Map[String, String], featureName: Option[String]): Unit
- Attributes
- protected
- Definition Classes
- SynapseMLLogging
-
def
logBase(methodName: String, numCols: Option[Int], executionSeconds: Option[Double], featureName: Option[String]): Unit
- Attributes
- protected
- Definition Classes
- SynapseMLLogging
-
def
logClass(featureName: String): Unit
- Definition Classes
- SynapseMLLogging
-
def
logDebug(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logErrorBase(methodName: String, e: Exception): Unit
- Attributes
- protected
- Definition Classes
- SynapseMLLogging
-
def
logFit[T](f: ⇒ T, columns: Int): T
- Definition Classes
- SynapseMLLogging
-
def
logInfo(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logName: String
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTransform[T](f: ⇒ T, columns: Int): T
- Definition Classes
- SynapseMLLogging
-
def
logVerb[T](verb: String, f: ⇒ T, columns: Option[Int] = None): T
- Definition Classes
- SynapseMLLogging
-
def
logWarning(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
makePyFile(conf: CodegenConfig): Unit
- Definition Classes
- PythonWrappable
-
def
makeRFile(conf: CodegenConfig): Unit
- Definition Classes
- RWrappable
-
final
val
maxIter: IntParam
- Definition Classes
- HasMaxIter
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
nonnegative: BooleanParam
- Definition Classes
- ALSParams
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
numItemBlocks: IntParam
- Definition Classes
- ALSParams
-
val
numUserBlocks: IntParam
- Definition Classes
- ALSParams
-
lazy val
params: Array[Param[_]]
- Definition Classes
- Params
-
var
parent: Estimator[SARModel]
- Definition Classes
- Model
-
final
val
predictionCol: Param[String]
- Definition Classes
- HasPredictionCol
-
def
pyAdditionalMethods: String
- Definition Classes
- PythonWrappable
-
lazy val
pyClassDoc: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
lazy val
pyClassName: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyExtraEstimatorImports: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyExtraEstimatorMethods: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
lazy val
pyInheritedClasses: Seq[String]
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyInitFunc(): String
- Definition Classes
- PythonWrappable
-
lazy val
pyInternalWrapper: Boolean
- Attributes
- protected
- Definition Classes
- SARModel → PythonWrappable
-
lazy val
pyObjectBaseClass: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyParamArg[T](p: Param[T]): String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyParamDefault[T](p: Param[T]): Option[String]
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyParamGetter(p: Param[_]): String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyParamSetter(p: Param[_]): String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyParamsArgs: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyParamsDefaults: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
lazy val
pyParamsDefinitions: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyParamsGetters: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pyParamsSetters: String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
pythonClass(): String
- Attributes
- protected
- Definition Classes
- PythonWrappable
-
def
rClass(): String
- Attributes
- protected
- Definition Classes
- RWrappable
-
def
rDocString: String
- Attributes
- protected
- Definition Classes
- RWrappable
-
def
rExtraBodyLines: String
- Attributes
- protected
- Definition Classes
- RWrappable
-
def
rExtraInitLines: String
- Attributes
- protected
- Definition Classes
- RWrappable
-
lazy val
rFuncName: String
- Attributes
- protected
- Definition Classes
- RWrappable
-
lazy val
rInternalWrapper: Boolean
- Attributes
- protected
- Definition Classes
- RWrappable
-
def
rParamArg[T](p: Param[T]): String
- Attributes
- protected
- Definition Classes
- RWrappable
-
def
rParamsArgs: String
- Attributes
- protected
- Definition Classes
- RWrappable
-
def
rSetterLines: String
- Attributes
- protected
- Definition Classes
- RWrappable
-
val
rank: IntParam
- Definition Classes
- ALSParams
-
val
ratingCol: Param[String]
- Definition Classes
- ALSParams
-
def
recommendForAllItems(numItems: Int): DataFrame
- Definition Classes
- SARModel → BaseRecommendationModel
-
def
recommendForAllUsers(numItems: Int): DataFrame
Returns top
numItems
items recommended for each user, for all users.Returns top
numItems
items recommended for each user, for all users.- numItems
max number of recommendations for each user
- returns
a DataFrame of (userCol: Int, recommendations), where recommendations are stored as an array of (itemCol: Int, rating: Float) Rows.
- Definition Classes
- SARModel → BaseRecommendationModel
-
def
recommendForUserSubset(dataset: Dataset[_], numItems: Int): DataFrame
Returns top
numItems
items recommended for each user id in the input data set.Returns top
numItems
items recommended for each user id in the input data set. Note that if there are duplicate ids in the input dataset, only one set of recommendations per unique id will be returned.- dataset
a Dataset containing a column of user ids. The column name must match
userCol
.- numItems
max number of recommendations for each user.
- returns
a DataFrame of (userCol: Int, recommendations), where recommendations are stored as an array of (itemCol: Int, rating: Float) Rows.
-
final
val
regParam: DoubleParam
- Definition Classes
- HasRegParam
-
def
save(path: String): Unit
- Definition Classes
- MLWritable
- Annotations
- @Since( "1.6.0" ) @throws( ... )
-
final
val
seed: LongParam
- Definition Classes
- HasSeed
-
final
def
set(paramPair: ParamPair[_]): SARModel.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set(param: String, value: Any): SARModel.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set[T](param: Param[T], value: T): SARModel.this.type
- Definition Classes
- Params
-
def
setActivityTimeFormat(value: String): SARModel.this.type
- Definition Classes
- SARParams
-
def
setAlpha(value: Double): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setBlockSize(value: Int): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setCheckpointInterval(value: Int): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setColdStartStrategy(value: String): SARModel.this.type
- Definition Classes
- RecommendationParams
-
final
def
setDefault(paramPairs: ParamPair[_]*): SARModel.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
setDefault[T](param: Param[T], value: T): SARModel.this.type
- Attributes
- protected[org.apache.spark.ml]
- Definition Classes
- Params
-
def
setFinalStorageLevel(value: String): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setImplicitPrefs(value: Boolean): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setIntermediateStorageLevel(value: String): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setItemCol(value: String): SARModel.this.type
- Definition Classes
- SARParams
- def setItemDataFrame(value: DataFrame): SARModel.this.type
-
def
setMaxIter(value: Int): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setNonnegative(value: Boolean): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setNumItemBlocks(value: Int): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setNumUserBlocks(value: Int): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setParent(parent: Estimator[SARModel]): SARModel
- Definition Classes
- Model
-
def
setPredictionCol(value: String): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setRank(value: Int): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setRatingCol(value: String): SARModel.this.type
- Definition Classes
- SARParams
-
def
setRegParam(value: Double): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setSeed(value: Long): SARModel.this.type
- Definition Classes
- RecommendationParams
-
def
setSimilarityFunction(value: String): SARModel.this.type
- Definition Classes
- SARParams
-
def
setStartTime(value: String): SARModel.this.type
- Definition Classes
- SARParams
-
def
setStartTimeFormat(value: String): SARModel.this.type
- Definition Classes
- SARParams
-
def
setSupportThreshold(value: Int): SARModel.this.type
- Definition Classes
- SARParams
-
def
setTimeCol(value: String): SARModel.this.type
- Definition Classes
- SARParams
-
def
setTimeDecayCoeff(value: Int): SARModel.this.type
- Definition Classes
- SARParams
-
def
setUserCol(value: String): SARModel.this.type
- Definition Classes
- SARParams
- def setUserDataFrame(value: DataFrame): SARModel.this.type
-
val
similarityFunction: Param[String]
- Definition Classes
- SARParams
-
val
startTime: Param[String]
- Definition Classes
- SARParams
-
val
startTimeFormat: Param[String]
- Definition Classes
- SARParams
-
val
supportThreshold: IntParam
- Definition Classes
- SARParams
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
thisStage: Params
- Attributes
- protected
- Definition Classes
- BaseWrappable
-
val
timeCol: Param[String]
- Definition Classes
- SARParams
-
val
timeDecayCoeff: IntParam
- Definition Classes
- SARParams
-
def
toString(): String
- Definition Classes
- Identifiable → AnyRef → Any
-
def
transform(dataset: Dataset[_]): DataFrame
- Definition Classes
- SARModel → Transformer
-
def
transform(rank: Int, userDataFrame: DataFrame, itemDataFrame: DataFrame, dataset: Dataset[_]): DataFrame
- Definition Classes
- BaseRecommendationModel
-
def
transform(dataset: Dataset[_], paramMap: ParamMap): DataFrame
- Definition Classes
- Transformer
- Annotations
- @Since( "2.0.0" )
-
def
transform(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): DataFrame
- Definition Classes
- Transformer
- Annotations
- @Since( "2.0.0" ) @varargs()
-
def
transformSchema(schema: StructType): StructType
- Definition Classes
- SARModel → PipelineStage
-
def
transformSchema(schema: StructType, logging: Boolean): StructType
- Attributes
- protected
- Definition Classes
- PipelineStage
- Annotations
- @DeveloperApi()
-
val
uid: String
- Definition Classes
- SARModel → SynapseMLLogging → Identifiable
-
val
userCol: Param[String]
- Definition Classes
- ALSModelParams
- val userDataFrame: DataFrameParam
-
def
validateAndTransformSchema(schema: StructType): StructType
- Attributes
- protected
- Definition Classes
- ALSParams
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
write: MLWriter
- Definition Classes
- ComplexParamsWritable → MLWritable