@Singleton @Path(value="/recommendToAnonymous") public final class RecommendToAnonymous extends AbstractOryxResource
Responds to a GET request to
/recommendToAnonymous/[itemID1(=value1)](/[itemID2(=value2)]/...)(?howMany=n)(&offset=o)(&rescorerParams=...)
Results are recommended items for an "anonymous" user, along with a score. The user is
defined by a set of items and optional interaction strengths, as in
EstimateForAnonymous.
Outputs contain item and score pairs, where the score is an opaque
value where higher values mean a better recommendation.
howMany, considerKnownItems and offset behavior, and output, are as in
Recommend.
INPUT_PRODUCER_KEY, MODEL_MANAGER_KEY| Constructor and Description |
|---|
RecommendToAnonymous() |
| Modifier and Type | Method and Description |
|---|---|
List<IDValue> |
get(List<javax.ws.rs.core.PathSegment> pathSegments,
int howMany,
int offset,
List<String> rescorerParams) |
check, check, checkExists, checkNotReadOnly, getServingModel, isReadOnly, maybeBuffer, maybeBuffer, maybeDecompress, parseMultipart, sendInputgetInputProducer, getServingModelManager, init@GET
@Path(value="{itemID : .+}")
@Produces(value={"text/plain","text/csv","application/json"})
public List<IDValue> get(@PathParam(value="itemID")
List<javax.ws.rs.core.PathSegment> pathSegments,
@DefaultValue(value="10") @QueryParam(value="howMany")
int howMany,
@DefaultValue(value="0") @QueryParam(value="offset")
int offset,
@QueryParam(value="rescorerParams")
List<String> rescorerParams)
throws OryxServingException
OryxServingExceptionCopyright © 2014–2018. All rights reserved.