|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.cf.taste.impl.model.AbstractDataModel
public abstract class AbstractDataModel
Contains some features common to all implementations.
Constructor Summary | |
---|---|
protected |
AbstractDataModel()
|
Method Summary | |
---|---|
float |
getMaxPreference()
|
float |
getMinPreference()
|
protected void |
setMaxPreference(float maxPreference)
|
protected void |
setMinPreference(float minPreference)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.mahout.cf.taste.model.DataModel |
---|
getItemIDs, getItemIDsFromUser, getNumItems, getNumUsers, getNumUsersWithPreferenceFor, getPreferencesForItem, getPreferencesFromUser, getPreferenceTime, getPreferenceValue, getUserIDs, hasPreferenceValues, removePreference, setPreference |
Methods inherited from interface org.apache.mahout.cf.taste.common.Refreshable |
---|
refresh |
Constructor Detail |
---|
protected AbstractDataModel()
Method Detail |
---|
public float getMaxPreference()
getMaxPreference
in interface DataModel
Recommender
may estimate a preference value above 5.0, it
isn't "fair" to consider that the system is actually suggesting an impossible rating of, say, 5.4 stars.
In practice the application would cap this estimate to 5.0. Since evaluators evaluate
the difference between estimated and actual value, this at least prevents this effect from unfairly
penalizing a Recommender
protected void setMaxPreference(float maxPreference)
public float getMinPreference()
getMinPreference
in interface DataModel
DataModel.getMaxPreference()
protected void setMinPreference(float minPreference)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |