@Singleton @Path(value="/estimate") public final class Estimate extends AbstractOryxResource
Responds to a GET request to /estimate/[userID]/[itemID]
.
The results are opaque values which estimate the strength of interaction between a user and item. Higher values mean stronger interaction.
This REST endpoint can also compute several estimates at once. Send a GET request to
/estimate/[userID]/[itemID1](/[itemID2]/...)
.
If the user is not known to the model, a Response.Status.NOT_FOUND
response is generated. If any item is not known, then that entry in the response will be 0.
The output are estimates, in the same order as the item IDs. For default CSV output, each line contains one estimate. For JSON output, the result is an array of estimates.
INPUT_PRODUCER_KEY, MODEL_MANAGER_KEY
Constructor and Description |
---|
Estimate() |
Modifier and Type | Method and Description |
---|---|
List<Double> |
get(String userID,
List<javax.ws.rs.core.PathSegment> pathSegmentsList) |
check, check, checkExists, checkNotReadOnly, getServingModel, isReadOnly, maybeBuffer, maybeBuffer, maybeDecompress, parseMultipart, sendInput
getInputProducer, getServingModelManager, init
@GET @Path(value="{userID}/{itemID : .+}") @Produces(value={"text/plain","text/csv","application/json"}) public List<Double> get(@PathParam(value="userID") String userID, @PathParam(value="itemID") List<javax.ws.rs.core.PathSegment> pathSegmentsList) throws OryxServingException
OryxServingException
Copyright © 2014–2018. All rights reserved.