public static class SimpleRatingPredictor.Provider extends Object implements javax.inject.Provider<RatingPredictor>
ItemScorer
and UserEventDAO
available, and returns
null
otherwise. This is the default provider for RatingPredictor
.Constructor and Description |
---|
Provider(ItemScorer s,
ItemScorer bp,
PreferenceDomain dom)
Construct an automatic provider.
|
@Inject public Provider(@Nullable ItemScorer s, @Nullable @BaselineScorer ItemScorer bp, @Nullable PreferenceDomain dom)
s
- The item scorer. If null
, no rating predictor will be supplied.bp
- The baseline predictor, if configured.dom
- The preference domain, if known.public RatingPredictor get()
get
in interface javax.inject.Provider<RatingPredictor>