The contents of the return vector depends on both the modeling
task - binary classification, multiclass classification, or regression
- and the value of the type parameter. For regression tasks, the type
parameter is ignored and a vector of numerical predictions of the response
variable is returned.
For binary classification tasks, either
a vector of predicted responses is returned if type has the
value "response" (the default), or a vector of probabilities
for the positive class is returned, if type is "probability".
For multiclass classification tasks, "response" will return the predicted
class and "probability" will return the probability of each class.
This function will error if the requested job has errored, or
if it isn't complete within maxWait seconds.