Deployment#
- class datarobotx.Deployment(deployment_id=None)[source]#
DataRobot ML Ops deployment
Implements real-time predictions on ML Ops deployments
- Parameters:
deployment_id (str, optional) – DataRobot id for the deployment from which to initialize the object
Attributes:
DataRobot python client datarobot.Deployment object
Methods:
from_url([url])Class method to initialize from a URL string
predict(X[, max_explanations])Make predictions on X asynchronously using the deployment
predict_proba(X[, max_explanations])Calculate class probabilities on X asynchronously using the deployment
Make predictions with data asynchronously using the deployment
share(emails)Share a deployment with other users.
- property dr_deployment#
DataRobot python client datarobot.Deployment object
- Returns:
datarobot.Deployment object associated with this drx.Deployment
- Return type:
datarobot.Deployment
- classmethod from_url(url=None)[source]#
Class method to initialize from a URL string
Useful for copy and pasting between GUI and notebook environments
- Parameters:
url (str) – URL of a DataRobot GUI page related to the deployment of interest
- Returns:
model – The deployed model object
- Return type:
- predict(X, max_explanations=None)[source]#
Make predictions on X asynchronously using the deployment
Returns empty DataFrame which will be updated with results when complete
- predict_proba(X, max_explanations=None)[source]#
Calculate class probabilities on X asynchronously using the deployment
Returns empty DataFrame which will be updated with results when complete