customvision_predictive_service function

Connect to a Custom Vision predictive service

Connect to a Custom Vision predictive service

classification_service(endpoint, project, name) object_detection_service(endpoint, project, name)

Arguments

  • endpoint: A prediction endpoint object, of class customvision_prediction_endpoint.
  • project: The project underlying this predictive service. Can be either an object of class customvision_project, or a string giving the ID of the project.
  • name: The published name of the service.

Returns

An object of class classification_service or object_detection_service, as appropriate. These are subclasses of customvision_predictive_service.

Details

These functions are handles to a predictive service that was previously published from a trained model. They have predict methods defined for them.

Examples

## Not run: endp <- customvision_training_endpoint(url="endpoint_url", key="key") myproj <- get_project(endp, "myproject") # getting the ID from the project object -- in practice you would store the ID separately pred_endp <- customvision_prediction_endpoint(url="endpoint_url", key="pred_key") classification_service(pred_endp, myproj$project$id, "publishedname") ## End(Not run)

See Also

customvision_prediction_endpoint, customvision_project

predict.classification_service, predict.object_detection_service, do_prediction_op

train_model, publish_model

  • Maintainer: Hong Ooi
  • License: MIT + file LICENSE
  • Last published: 2020-10-17