@Singleton @Path(value="/train") public final class Train extends AbstractOryxResource
Responds to POST request to /train. The input is one or more data points
to train, one for each line of the request body. Each data point is a delimited line of input like
"1,foo,3.0". Also, one data point can be supplied by POSTing to /train/[datum].
The classifier updates to learn in some way from the new data. The response is empty.
INPUT_PRODUCER_KEY, MODEL_MANAGER_KEY| Constructor and Description |
|---|
Train() |
| Modifier and Type | Method and Description |
|---|---|
void |
post(javax.servlet.http.HttpServletRequest request) |
void |
post(Reader reader) |
void |
post(String datum) |
check, check, checkExists, checkNotReadOnly, getServingModel, isReadOnly, maybeBuffer, maybeBuffer, maybeDecompress, parseMultipart, sendInputgetInputProducer, getServingModelManager, init@POST
@Consumes(value={"text/plain","text/csv","application/json"})
public void post(Reader reader)
throws IOException,
OryxServingException
IOExceptionOryxServingException@POST
@Path(value="{datum}")
public void post(@PathParam(value="datum")
String datum)
throws OryxServingException
OryxServingException@POST
@Consumes(value="multipart/form-data")
public void post(@Context
javax.servlet.http.HttpServletRequest request)
throws IOException,
OryxServingException
IOExceptionOryxServingExceptionCopyright © 2014–2018. All rights reserved.