Synapseml
0.11.2
|
Public Member Functions | |
SAR () | |
Creates a SAR without any parameters. More... | |
SAR (string uid) | |
Creates a SAR with a UID that is used to give the SAR a unique ID. More... | |
SAR | SetActivityTimeFormat (string value) |
Sets value for activityTimeFormat More... | |
SAR | SetAlpha (double value) |
Sets value for alpha More... | |
SAR | SetBlockSize (int value) |
Sets value for blockSize More... | |
SAR | SetCheckpointInterval (int value) |
Sets value for checkpointInterval More... | |
SAR | SetColdStartStrategy (string value) |
Sets value for coldStartStrategy More... | |
SAR | SetFinalStorageLevel (string value) |
Sets value for finalStorageLevel More... | |
SAR | SetImplicitPrefs (bool value) |
Sets value for implicitPrefs More... | |
SAR | SetIntermediateStorageLevel (string value) |
Sets value for intermediateStorageLevel More... | |
SAR | SetItemCol (string value) |
Sets value for itemCol More... | |
SAR | SetMaxIter (int value) |
Sets value for maxIter More... | |
SAR | SetNonnegative (bool value) |
Sets value for nonnegative More... | |
SAR | SetNumItemBlocks (int value) |
Sets value for numItemBlocks More... | |
SAR | SetNumUserBlocks (int value) |
Sets value for numUserBlocks More... | |
SAR | SetPredictionCol (string value) |
Sets value for predictionCol More... | |
SAR | SetRank (int value) |
Sets value for rank More... | |
SAR | SetRatingCol (string value) |
Sets value for ratingCol More... | |
SAR | SetRegParam (double value) |
Sets value for regParam More... | |
SAR | SetSeed (long value) |
Sets value for seed More... | |
SAR | SetSimilarityFunction (string value) |
Sets value for similarityFunction More... | |
SAR | SetStartTime (string value) |
Sets value for startTime More... | |
SAR | SetStartTimeFormat (string value) |
Sets value for startTimeFormat More... | |
SAR | SetSupportThreshold (int value) |
Sets value for supportThreshold More... | |
SAR | SetTimeCol (string value) |
Sets value for timeCol More... | |
SAR | SetTimeDecayCoeff (int value) |
Sets value for timeDecayCoeff More... | |
SAR | SetUserCol (string value) |
Sets value for userCol 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... | |
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... | |
override SARModel | Fit (DataFrame dataset) |
Fits a model to the input data. 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< SAR > | Read () |
Get the corresponding JavaMLReader instance. More... | |
Static Public Member Functions | |
static SAR | Load (string path) |
Loads the SAR that was previously saved using Save(string). More... | |
|
inline |
Creates a SAR without any parameters.
|
inline |
override SARModel Synapse.ML.Recommendation.SAR.Fit | ( | DataFrame | dataset | ) |
Fits a model to the input data.
dataset | The DataFrame to fit the model to. |
string Synapse.ML.Recommendation.SAR.GetActivityTimeFormat | ( | ) |
Gets activityTimeFormat value
double Synapse.ML.Recommendation.SAR.GetAlpha | ( | ) |
Gets alpha value
int Synapse.ML.Recommendation.SAR.GetBlockSize | ( | ) |
Gets blockSize value
int Synapse.ML.Recommendation.SAR.GetCheckpointInterval | ( | ) |
Gets checkpointInterval value
string Synapse.ML.Recommendation.SAR.GetColdStartStrategy | ( | ) |
Gets coldStartStrategy value
string Synapse.ML.Recommendation.SAR.GetFinalStorageLevel | ( | ) |
Gets finalStorageLevel value
bool Synapse.ML.Recommendation.SAR.GetImplicitPrefs | ( | ) |
Gets implicitPrefs value
string Synapse.ML.Recommendation.SAR.GetIntermediateStorageLevel | ( | ) |
Gets intermediateStorageLevel value
string Synapse.ML.Recommendation.SAR.GetItemCol | ( | ) |
Gets itemCol value
int Synapse.ML.Recommendation.SAR.GetMaxIter | ( | ) |
Gets maxIter value
bool Synapse.ML.Recommendation.SAR.GetNonnegative | ( | ) |
Gets nonnegative value
int Synapse.ML.Recommendation.SAR.GetNumItemBlocks | ( | ) |
Gets numItemBlocks value
int Synapse.ML.Recommendation.SAR.GetNumUserBlocks | ( | ) |
Gets numUserBlocks value
string Synapse.ML.Recommendation.SAR.GetPredictionCol | ( | ) |
Gets predictionCol value
int Synapse.ML.Recommendation.SAR.GetRank | ( | ) |
Gets rank value
string Synapse.ML.Recommendation.SAR.GetRatingCol | ( | ) |
Gets ratingCol value
double Synapse.ML.Recommendation.SAR.GetRegParam | ( | ) |
Gets regParam value
long Synapse.ML.Recommendation.SAR.GetSeed | ( | ) |
Gets seed value
string Synapse.ML.Recommendation.SAR.GetSimilarityFunction | ( | ) |
Gets similarityFunction value
string Synapse.ML.Recommendation.SAR.GetStartTime | ( | ) |
Gets startTime value
string Synapse.ML.Recommendation.SAR.GetStartTimeFormat | ( | ) |
Gets startTimeFormat value
int Synapse.ML.Recommendation.SAR.GetSupportThreshold | ( | ) |
Gets supportThreshold value
string Synapse.ML.Recommendation.SAR.GetTimeCol | ( | ) |
Gets timeCol value
int Synapse.ML.Recommendation.SAR.GetTimeDecayCoeff | ( | ) |
Gets timeDecayCoeff value
string Synapse.ML.Recommendation.SAR.GetUserCol | ( | ) |
Gets userCol value
|
static |
Loads the SAR that was previously saved using Save(string).
path | The path the previous SAR was saved to |
JavaMLReader<SAR> Synapse.ML.Recommendation.SAR.Read | ( | ) |
Get the corresponding JavaMLReader instance.
void Synapse.ML.Recommendation.SAR.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 |
SAR Synapse.ML.Recommendation.SAR.SetActivityTimeFormat | ( | string | value | ) |
Sets value for activityTimeFormat
value | Time format for events, default: yyyy/MM/dd'T'h:mm:ss |
SAR Synapse.ML.Recommendation.SAR.SetAlpha | ( | double | value | ) |
SAR Synapse.ML.Recommendation.SAR.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. |
SAR Synapse.ML.Recommendation.SAR.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 |
SAR Synapse.ML.Recommendation.SAR.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. |
SAR Synapse.ML.Recommendation.SAR.SetFinalStorageLevel | ( | string | value | ) |
Sets value for finalStorageLevel
value | StorageLevel for ALS model factors. |
SAR Synapse.ML.Recommendation.SAR.SetImplicitPrefs | ( | bool | value | ) |
Sets value for implicitPrefs
value | whether to use implicit preference |
SAR Synapse.ML.Recommendation.SAR.SetIntermediateStorageLevel | ( | string | value | ) |
Sets value for intermediateStorageLevel
value | StorageLevel for intermediate datasets. Cannot be 'NONE'. |
SAR Synapse.ML.Recommendation.SAR.SetItemCol | ( | string | value | ) |
Sets value for itemCol
value | column name for item ids. Ids must be within the integer value range. |
SAR Synapse.ML.Recommendation.SAR.SetMaxIter | ( | int | value | ) |
SAR Synapse.ML.Recommendation.SAR.SetNonnegative | ( | bool | value | ) |
Sets value for nonnegative
value | whether to use nonnegative constraint for least squares |
SAR Synapse.ML.Recommendation.SAR.SetNumItemBlocks | ( | int | value | ) |
SAR Synapse.ML.Recommendation.SAR.SetNumUserBlocks | ( | int | value | ) |
SAR Synapse.ML.Recommendation.SAR.SetPredictionCol | ( | string | value | ) |
SAR Synapse.ML.Recommendation.SAR.SetRank | ( | int | value | ) |
SAR Synapse.ML.Recommendation.SAR.SetRatingCol | ( | string | value | ) |
SAR Synapse.ML.Recommendation.SAR.SetRegParam | ( | double | value | ) |
SAR Synapse.ML.Recommendation.SAR.SetSeed | ( | long | value | ) |
SAR Synapse.ML.Recommendation.SAR.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. |
SAR Synapse.ML.Recommendation.SAR.SetStartTime | ( | string | value | ) |
Sets value for startTime
value | Set time custom now time if using historical data |
SAR Synapse.ML.Recommendation.SAR.SetStartTimeFormat | ( | string | value | ) |
SAR Synapse.ML.Recommendation.SAR.SetSupportThreshold | ( | int | value | ) |
Sets value for supportThreshold
value | Minimum number of ratings per item |
SAR Synapse.ML.Recommendation.SAR.SetTimeCol | ( | string | value | ) |
SAR Synapse.ML.Recommendation.SAR.SetTimeDecayCoeff | ( | int | value | ) |
Sets value for timeDecayCoeff
value | Use to scale time decay coeff to different half life dur |
SAR Synapse.ML.Recommendation.SAR.SetUserCol | ( | string | value | ) |
Sets value for userCol
value | column name for user ids. Ids must be within the integer value range. |