Verta
Search…
Quickstart
Models can be deployed using Verta's scalable, configurable endpoints.
Endpoints are easy to create through either the client:
1
endpoint = client.create_endpoint("classify-income")
2
endpoint.update(model_ver)
Copied!
or the webapp:
endpoint.update() can also accept an experiment run rather than a model version. In addition, the wait parameter can be set to True to wait for the deployed model to be ready before executing the next line of code.
1
endpoint.update(run, wait=True)
Copied!
Once an endpoint is deployed, predictions can be made against it either through the Python client:
1
deployed_model = endpoint.get_deployed_model()
2
for row in data:
3
print(deployed_model.predict(row))
Copied!
or via a REST call:
1
curl -H "Access-token: 12345678-abcd-1234-abcd-123456789012" -X POST https://app.verta.ai/api/v1/predict/classify-income -d '[1,2,3,4,5,6]' -H "Content-Type: application/json"
Copied!
Last modified 12d ago
Copy link