View source: R/predict_with_model.R
jaqpot.predict | R Documentation |
The user can provide a dataset and obtain predictions from an uploaded model given the model id.
jaqpot.predict(df, modelID, url = "https://api.jaqpot.org/", envFile = NULL)
df |
A list containing the prediction dataset. The column names of the dataset should be identical to the independent features of the model. |
modelID |
The Jaqpot id of the model |
url |
The base path of Jaqpot services. This argument is optional and needs to be changed only if an alternative Jaqpot installation is used. |
envFile |
.env filename containing API KEY and API KEY SECRET |
The user can obtain predictions from a model that has been uploaded on Jaqpot by providing a dataset and the appropriate model id.
Model predictions for the provided dataset.
## Not run:
#df <- data.frame(x1 = c(1,2), x2 = c(0.5,0.5))
#df$x3 <- list(c(1,1), c(2,2))
#jaqpot.predict(df = df, modelID = "Lfz3aBdh4LlJIJxAvNqV")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.