|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.cf.taste.impl.recommender.NullRescorer<T>
public final class NullRescorer<T>
A simple Rescorer
which always returns the original score.
Method Summary | |
---|---|
static IDRescorer |
getItemInstance()
|
static Rescorer<LongPair> |
getItemItemPairInstance()
|
static IDRescorer |
getUserInstance()
|
static Rescorer<LongPair> |
getUserUserPairInstance()
|
boolean |
isFiltered(long id)
Returns true to exclude the given thing. |
boolean |
isFiltered(T thing)
Returns true to exclude the given thing. |
double |
rescore(long id,
double originalScore)
|
double |
rescore(T thing,
double originalScore)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static IDRescorer getItemInstance()
public static IDRescorer getUserInstance()
public static Rescorer<LongPair> getItemItemPairInstance()
public static Rescorer<LongPair> getUserUserPairInstance()
public double rescore(T thing, double originalScore)
rescore
in interface Rescorer<T>
thing
- to rescoreoriginalScore
- current score for item
public boolean isFiltered(T thing)
Rescorer
true
to exclude the given thing.
isFiltered
in interface Rescorer<T>
thing
- the thing to filter
true
to exclude, false
otherwisepublic double rescore(long id, double originalScore)
rescore
in interface IDRescorer
id
- ID of thing (user, item, etc.) to rescoreoriginalScore
- original score
Double.NaN
to indicate that this should be excluded entirelypublic boolean isFiltered(long id)
IDRescorer
true
to exclude the given thing.
isFiltered
in interface IDRescorer
id
- ID of thing (user, item, etc.) to rescore
true
to exclude, false
otherwisepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |