jaqpot.predict: Obtain Predictions from a Jaqpot Model

View source: R/predict_with_model.R

jaqpot.predictR Documentation

Obtain Predictions from a Jaqpot Model

Description

The user can provide a dataset and obtain predictions from an uploaded model given the model id.

Usage

jaqpot.predict(df, modelID, url = "https://api.jaqpot.org/", envFile = NULL)

Arguments

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

Details

The user can obtain predictions from a model that has been uploaded on Jaqpot by providing a dataset and the appropriate model id.

Value

Model predictions for the provided dataset.

Examples

 ## 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)


KinkyDesign/jaqpotr documentation built on Nov. 27, 2024, 1:20 a.m.