Description Usage Arguments Details Value Examples
Retrieve predictions from a CivisML prediction job
1 | fetch_predictions(x, ...)
|
x |
|
... |
arguments passed to |
Predictions can also be downloaded as a csv
directly using download_civis
(see examples).
A data.frame
of predictions containing an additional column with
a primary key. For a multiclass model, a data frame is returned with one
column of predictions for each class.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
m <- civis_ml("path/to/file.csv", model_type = "sparse_logistic",
dependent_variable = "Species")
pred_job <- predict(m, newdata = "path/to/newdata.csv")
yhat <- fetch_predictions(pred_job)
# download instead:
download_civis(pred_job$model_info$output_file_ids, path = "my_predictions.csv")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.