Synapseml
1.0.2
|
SARModel implements SARModel More...
Public Member Functions | |
SARModel () | |
Creates a SARModel without any parameters. More... | |
SARModel (string uid) | |
Creates a SARModel with a UID that is used to give the SARModel a unique ID. More... | |
SARModel | SetActivityTimeFormat (string value) |
Sets value for activityTimeFormat More... | |
SARModel | SetAlpha (double value) |
Sets value for alpha More... | |
SARModel | SetBlockSize (int value) |
Sets value for blockSize More... | |
SARModel | SetCheckpointInterval (int value) |
Sets value for checkpointInterval More... | |
SARModel | SetColdStartStrategy (string value) |
Sets value for coldStartStrategy More... | |
SARModel | SetFinalStorageLevel (string value) |
Sets value for finalStorageLevel More... | |
SARModel | SetImplicitPrefs (bool value) |
Sets value for implicitPrefs More... | |
SARModel | SetIntermediateStorageLevel (string value) |
Sets value for intermediateStorageLevel More... | |
SARModel | SetItemCol (string value) |
Sets value for itemCol More... | |
SARModel | SetItemDataFrame (DataFrame value) |
Sets value for itemDataFrame More... | |
SARModel | SetMaxIter (int value) |
Sets value for maxIter More... | |
SARModel | SetNonnegative (bool value) |
Sets value for nonnegative More... | |
SARModel | SetNumItemBlocks (int value) |
Sets value for numItemBlocks More... | |
SARModel | SetNumUserBlocks (int value) |
Sets value for numUserBlocks More... | |
SARModel | SetPredictionCol (string value) |
Sets value for predictionCol More... | |
SARModel | SetRank (int value) |
Sets value for rank More... | |
SARModel | SetRatingCol (string value) |
Sets value for ratingCol More... | |
SARModel | SetRegParam (double value) |
Sets value for regParam More... | |
SARModel | SetSeed (long value) |
Sets value for seed More... | |
SARModel | SetSimilarityFunction (string value) |
Sets value for similarityFunction More... | |
SARModel | SetStartTime (string value) |
Sets value for startTime More... | |
SARModel | SetStartTimeFormat (string value) |
Sets value for startTimeFormat More... | |
SARModel | SetSupportThreshold (int value) |
Sets value for supportThreshold More... | |
SARModel | SetTimeCol (string value) |
Sets value for timeCol More... | |
SARModel | SetTimeDecayCoeff (int value) |
Sets value for timeDecayCoeff More... | |
SARModel | SetUserCol (string value) |
Sets value for userCol More... | |
SARModel | SetUserDataFrame (DataFrame value) |
Sets value for userDataFrame More... | |
string | GetActivityTimeFormat () |
Gets activityTimeFormat value More... | |
double | GetAlpha () |
Gets alpha value More... | |
int | GetBlockSize () |
Gets blockSize value More... | |
int | GetCheckpointInterval () |
Gets checkpointInterval value More... | |
string | GetColdStartStrategy () |
Gets coldStartStrategy value More... | |
string | GetFinalStorageLevel () |
Gets finalStorageLevel value More... | |
bool | GetImplicitPrefs () |
Gets implicitPrefs value More... | |
string | GetIntermediateStorageLevel () |
Gets intermediateStorageLevel value More... | |
string | GetItemCol () |
Gets itemCol value More... | |
DataFrame | GetItemDataFrame () |
Gets itemDataFrame value More... | |
int | GetMaxIter () |
Gets maxIter value More... | |
bool | GetNonnegative () |
Gets nonnegative value More... | |
int | GetNumItemBlocks () |
Gets numItemBlocks value More... | |
int | GetNumUserBlocks () |
Gets numUserBlocks value More... | |
string | GetPredictionCol () |
Gets predictionCol value More... | |
int | GetRank () |
Gets rank value More... | |
string | GetRatingCol () |
Gets ratingCol value More... | |
double | GetRegParam () |
Gets regParam value More... | |
long | GetSeed () |
Gets seed value More... | |
string | GetSimilarityFunction () |
Gets similarityFunction value More... | |
string | GetStartTime () |
Gets startTime value More... | |
string | GetStartTimeFormat () |
Gets startTimeFormat value More... | |
int | GetSupportThreshold () |
Gets supportThreshold value More... | |
string | GetTimeCol () |
Gets timeCol value More... | |
int | GetTimeDecayCoeff () |
Gets timeDecayCoeff value More... | |
string | GetUserCol () |
Gets userCol value More... | |
DataFrame | GetUserDataFrame () |
Gets userDataFrame value More... | |
void | Save (string path) |
Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala. More... | |
JavaMLWriter | Write () |
| |
JavaMLReader< SARModel > | Read () |
Get the corresponding JavaMLReader instance. More... | |
Static Public Member Functions | |
static SARModel | Load (string path) |
Loads the SARModel that was previously saved using Save(string). More... | |
|
inline |
Creates a SARModel without any parameters.
|
inline |
string Synapse.ML.Recommendation.SARModel.GetActivityTimeFormat | ( | ) |
Gets activityTimeFormat value
double Synapse.ML.Recommendation.SARModel.GetAlpha | ( | ) |
Gets alpha value
int Synapse.ML.Recommendation.SARModel.GetBlockSize | ( | ) |
Gets blockSize value
int Synapse.ML.Recommendation.SARModel.GetCheckpointInterval | ( | ) |
Gets checkpointInterval value
string Synapse.ML.Recommendation.SARModel.GetColdStartStrategy | ( | ) |
Gets coldStartStrategy value
string Synapse.ML.Recommendation.SARModel.GetFinalStorageLevel | ( | ) |
Gets finalStorageLevel value
bool Synapse.ML.Recommendation.SARModel.GetImplicitPrefs | ( | ) |
Gets implicitPrefs value
string Synapse.ML.Recommendation.SARModel.GetIntermediateStorageLevel | ( | ) |
Gets intermediateStorageLevel value
string Synapse.ML.Recommendation.SARModel.GetItemCol | ( | ) |
Gets itemCol value
DataFrame Synapse.ML.Recommendation.SARModel.GetItemDataFrame | ( | ) |
Gets itemDataFrame value
int Synapse.ML.Recommendation.SARModel.GetMaxIter | ( | ) |
Gets maxIter value
bool Synapse.ML.Recommendation.SARModel.GetNonnegative | ( | ) |
Gets nonnegative value
int Synapse.ML.Recommendation.SARModel.GetNumItemBlocks | ( | ) |
Gets numItemBlocks value
int Synapse.ML.Recommendation.SARModel.GetNumUserBlocks | ( | ) |
Gets numUserBlocks value
string Synapse.ML.Recommendation.SARModel.GetPredictionCol | ( | ) |
Gets predictionCol value
int Synapse.ML.Recommendation.SARModel.GetRank | ( | ) |
Gets rank value
string Synapse.ML.Recommendation.SARModel.GetRatingCol | ( | ) |
Gets ratingCol value
double Synapse.ML.Recommendation.SARModel.GetRegParam | ( | ) |
Gets regParam value
long Synapse.ML.Recommendation.SARModel.GetSeed | ( | ) |
Gets seed value
string Synapse.ML.Recommendation.SARModel.GetSimilarityFunction | ( | ) |
Gets similarityFunction value
string Synapse.ML.Recommendation.SARModel.GetStartTime | ( | ) |
Gets startTime value
string Synapse.ML.Recommendation.SARModel.GetStartTimeFormat | ( | ) |
Gets startTimeFormat value
int Synapse.ML.Recommendation.SARModel.GetSupportThreshold | ( | ) |
Gets supportThreshold value
string Synapse.ML.Recommendation.SARModel.GetTimeCol | ( | ) |
Gets timeCol value
int Synapse.ML.Recommendation.SARModel.GetTimeDecayCoeff | ( | ) |
Gets timeDecayCoeff value
string Synapse.ML.Recommendation.SARModel.GetUserCol | ( | ) |
Gets userCol value
DataFrame Synapse.ML.Recommendation.SARModel.GetUserDataFrame | ( | ) |
Gets userDataFrame value
|
static |
Loads the SARModel that was previously saved using Save(string).
path | The path the previous SARModel was saved to |
JavaMLReader<SARModel> Synapse.ML.Recommendation.SARModel.Read | ( | ) |
Get the corresponding JavaMLReader instance.
void Synapse.ML.Recommendation.SARModel.Save | ( | string | path | ) |
Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala.
path | The path to save the object to |
SARModel Synapse.ML.Recommendation.SARModel.SetActivityTimeFormat | ( | string | value | ) |
Sets value for activityTimeFormat
value | Time format for events, default: yyyy/MM/dd'T'h:mm:ss |
SARModel Synapse.ML.Recommendation.SARModel.SetAlpha | ( | double | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetBlockSize | ( | int | value | ) |
Sets value for blockSize
value | block size for stacking input data in matrices. Data is stacked within partitions. If block size is more than remaining data in a partition then it is adjusted to the size of this data. |
SARModel Synapse.ML.Recommendation.SARModel.SetCheckpointInterval | ( | int | value | ) |
Sets value for checkpointInterval
value | set checkpoint interval (>= 1) or disable checkpoint (-1). E.g. 10 means that the cache will get checkpointed every 10 iterations. Note: this setting will be ignored if the checkpoint directory is not set in the SparkContext |
SARModel Synapse.ML.Recommendation.SARModel.SetColdStartStrategy | ( | string | value | ) |
Sets value for coldStartStrategy
value | strategy for dealing with unknown or new users/items at prediction time. This may be useful in cross-validation or production scenarios, for handling user/item ids the model has not seen in the training data. Supported values: nan,drop. |
SARModel Synapse.ML.Recommendation.SARModel.SetFinalStorageLevel | ( | string | value | ) |
Sets value for finalStorageLevel
value | StorageLevel for ALS model factors. |
SARModel Synapse.ML.Recommendation.SARModel.SetImplicitPrefs | ( | bool | value | ) |
Sets value for implicitPrefs
value | whether to use implicit preference |
SARModel Synapse.ML.Recommendation.SARModel.SetIntermediateStorageLevel | ( | string | value | ) |
Sets value for intermediateStorageLevel
value | StorageLevel for intermediate datasets. Cannot be 'NONE'. |
SARModel Synapse.ML.Recommendation.SARModel.SetItemCol | ( | string | value | ) |
Sets value for itemCol
value | column name for item ids. Ids must be within the integer value range. |
SARModel Synapse.ML.Recommendation.SARModel.SetItemDataFrame | ( | DataFrame | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetMaxIter | ( | int | value | ) |
Sets value for maxIter
value | maximum number of iterations (>= 0) |
SARModel Synapse.ML.Recommendation.SARModel.SetNonnegative | ( | bool | value | ) |
Sets value for nonnegative
value | whether to use nonnegative constraint for least squares |
SARModel Synapse.ML.Recommendation.SARModel.SetNumItemBlocks | ( | int | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetNumUserBlocks | ( | int | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetPredictionCol | ( | string | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetRank | ( | int | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetRatingCol | ( | string | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetRegParam | ( | double | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetSeed | ( | long | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetSimilarityFunction | ( | string | value | ) |
Sets value for similarityFunction
value | Defines the similarity function to be used by the model. Lift favors serendipity, Co-occurrence favors predictability, and Jaccard is a nice compromise between the two. |
SARModel Synapse.ML.Recommendation.SARModel.SetStartTime | ( | string | value | ) |
Sets value for startTime
value | Set time custom now time if using historical data |
SARModel Synapse.ML.Recommendation.SARModel.SetStartTimeFormat | ( | string | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetSupportThreshold | ( | int | value | ) |
Sets value for supportThreshold
value | Minimum number of ratings per item |
SARModel Synapse.ML.Recommendation.SARModel.SetTimeCol | ( | string | value | ) |
SARModel Synapse.ML.Recommendation.SARModel.SetTimeDecayCoeff | ( | int | value | ) |
Sets value for timeDecayCoeff
value | Use to scale time decay coeff to different half life dur |
SARModel Synapse.ML.Recommendation.SARModel.SetUserCol | ( | string | value | ) |
Sets value for userCol
value | column name for user ids. Ids must be within the integer value range. |
SARModel Synapse.ML.Recommendation.SARModel.SetUserDataFrame | ( | DataFrame | value | ) |