@Shareable public final class FunkSVDUpdateRule extends Object implements Serializable
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(PreferenceSnapshot 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)
lrate
- The learning rate.reg
- The regularization term.stop
- The stopping conditionpublic TrainingEstimator makeEstimator(PreferenceSnapshot snapshot)
public double getLearningRate()
public double getTrainingRegularization()
public StoppingCondition getStoppingCondition()
@Nullable public PreferenceDomain getDomain()
public TrainingLoopController getTrainingLoopController()
public FunkSVDUpdater createUpdater()