|
||||||||||
| 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 Objects.
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 | |||||||||