classification_service {AzureVision} | R Documentation |
Connect to a Custom Vision predictive service
Description
Connect to a Custom Vision predictive service
Usage
classification_service(endpoint, project, name)
object_detection_service(endpoint, project, name)
Arguments
endpoint |
A prediction endpoint object, of class |
project |
The project underlying this predictive service. Can be either an object of class |
name |
The published name of the 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.
Value
An object of class classification_service
or object_detection_service
, as appropriate. These are subclasses of customvision_predictive_service
.
See Also
customvision_prediction_endpoint
, customvision_project
predict.classification_service
, predict.object_detection_service
, do_prediction_op
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)
[Package AzureVision version 1.0.2 Index]