Description Usage Arguments Value
Test your docker image
1 2 3 4 | test_docker(data, package_name, image_name = package_name,
process_name = image_name, base_url = "localhost", port = 8004,
docker_image_type = c("opencpu", "plumber")[1],
batch_size = nrow(data), ping_time = 5, verbose = T)
|
data |
A new dataset to get predictions for |
package_name |
The name of the package |
image_name |
The name of the docker image |
process_name |
The name you want the docker image to be run as. Defaults to |
base_url |
The base url where the docker image is located. If this is equals |
port |
The host port on which the docker image is accessible. Defaults to 8004. |
docker_image_type |
The type of docker image to be created. Currently 'opencpu' and 'plumber' are supported. Both will run by default on port 8004 of the created image. |
batch_size |
Allows you to set how many rows you want to send each time. |
ping_time |
How many seconds we'll try to ping the docker image before declaring the launch a failure. |
verbose |
Flag indicating if you want status updates printed. |
A dataframe of predictions, one row per row in data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.