Predict on a dataset using a trained tundraContainer.

predict(dataframe, predict_args = list(), verbose = FALSE, munge = TRUE)

Arguments

dataframe

data.frame. The dataset to generate predictions on with the trained model. The data will be preprocessed with the tundraContainer's trained munge_procedure and then passed as the first argument to the tundraContainer's predict_function.

predict_args

list. A list of arguments to pass to the tundraContainer's predict_function as its second argument.

verbose

logical. Either TRUE or FALSE, by default the latter. If TRUE, then output produced by running the munge_procedure or the predict_function will not be silenced.

munge

logical. Either TRUE or FALSE, by default the former. If TRUE, the munge_procedure provided to the container during initialization will be used to preprocess the given dataframe.

Value

The value returned by the tundraContainer's predict_function, usually a numeric vector or data.frame of predictions.