@Shareable public final class FunkSVDUpdateRule extends Object implements Serializable
Configuration for computing FunkSVD updates.
Constructor and Description |
---|
FunkSVDUpdateRule(double lrate,
double reg,
ItemScorer bl,
PreferenceDomain dom,
StoppingCondition stop)
Construct a new FunkSVD configuration.
|
Modifier and Type | Method and Description |
---|---|
FunkSVDUpdater |
createUpdater() |
PreferenceDomain |
getDomain() |
double |
getLearningRate() |
StoppingCondition |
getStoppingCondition() |
TrainingLoopController |
getTrainingLoopController() |
double |
getTrainingRegularization() |
TrainingEstimator |
makeEstimator(RatingMatrix snapshot)
Create an estimator to use while training the recommender.
|
@Inject public FunkSVDUpdateRule(@LearningRate double lrate, @RegularizationTerm double reg, @BaselineScorer ItemScorer bl, @Nullable PreferenceDomain dom, StoppingCondition stop)
Construct a new FunkSVD configuration.
lrate
- The learning rate.reg
- The regularization term.stop
- The stopping conditionpublic TrainingEstimator makeEstimator(RatingMatrix snapshot)
Create an estimator to use while training the recommender.
public double getLearningRate()
public double getTrainingRegularization()
public StoppingCondition getStoppingCondition()
@Nullable public PreferenceDomain getDomain()
public TrainingLoopController getTrainingLoopController()
public FunkSVDUpdater createUpdater()