if (FALSE) {
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")
}
Run the code above in your browser using DataLab