@Singleton @Path(value="/popularRepresentativeItems") public final class PopularRepresentativeItems extends AbstractOryxResource
Responds to a GET request to /popularRepresentativeItems
.
The result is a list of items that is in some way representative of the range of items in the model. That is, the items will tend to be different from each other, and popular. Specifically, it is "recommending" one item to each of the latent features in the model.
Output is one item ID per line, or in the case of JSON output, an array of IDs.
INPUT_PRODUCER_KEY, MODEL_MANAGER_KEY
Constructor and Description |
---|
PopularRepresentativeItems() |
Modifier and Type | Method and Description |
---|---|
List<String> |
get() |
check, check, checkExists, checkNotReadOnly, getServingModel, isReadOnly, maybeBuffer, maybeBuffer, maybeDecompress, parseMultipart, sendInput
getInputProducer, getServingModelManager, init
@GET @Produces(value={"text/plain","text/csv","application/json"}) public List<String> get() throws OryxServingException
OryxServingException
Copyright © 2014–2018. All rights reserved.