|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDRescorer
A Rescorer
which operates on long
primitive IDs, rather than arbitrary Object
s.
This is provided since most uses of this interface in the framework take IDs (as long
) as an
argument, and so this can be used to avoid unnecessary boxing/unboxing.
Method Summary | |
---|---|
boolean |
isFiltered(long ID)
Returns true to exclude the given thing. |
double |
rescore(long ID,
double originalScore)
|
Method Detail |
---|
double rescore(long ID, double originalScore)
ID
- ID of thing (user, item, etc.) to rescoreoriginalScore
- original score
Double.NaN
to indicate that this should be excluded entirelyboolean isFiltered(long ID)
true
to exclude the given thing.
ID
- ID of thing (user, item, etc.) to rescore
true
to exclude, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |