Skip to content

Latest commit

 

History

History
120 lines (82 loc) · 3.88 KB

ExplainApi.md

File metadata and controls

120 lines (82 loc) · 3.88 KB

seldon_deploy_sdk.ExplainApi

All URIs are relative to http://X.X.X.X/seldon-deploy/api/v1alpha1

Method HTTP request Description
explain_seldon_deployment POST /namespaces/{namespace}/seldondeployments/{name}/explain
explain_seldon_pipeline POST /namespaces/{namespace}/pipelines/{name}/explain

explain_seldon_deployment

object explain_seldon_deployment(namespace, name, explaindata=explaindata)

Create Seldon Deployment explanation

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.ExplainApi(seldon_deploy_sdk.ApiClient(configuration))
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
name = 'name_example' # str | Name identifies a resource
explaindata = NULL # object | Prediction contains predict payload (optional)

try:
    api_response = api_instance.explain_seldon_deployment(namespace, name, explaindata=explaindata)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExplainApi->explain_seldon_deployment: %s\n" % e)

Parameters

Name Type Description Notes
namespace str Namespace provides a logical grouping of resources
name str Name identifies a resource
explaindata object Prediction contains predict payload [optional]

Return type

object

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

explain_seldon_pipeline

object explain_seldon_pipeline(namespace, name, explaindata=explaindata)

Create Seldon Pipeline explanation

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.ExplainApi(seldon_deploy_sdk.ApiClient(configuration))
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
name = 'name_example' # str | Name identifies a resource
explaindata = NULL # object | Prediction contains predict payload (optional)

try:
    api_response = api_instance.explain_seldon_pipeline(namespace, name, explaindata=explaindata)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExplainApi->explain_seldon_pipeline: %s\n" % e)

Parameters

Name Type Description Notes
namespace str Namespace provides a logical grouping of resources
name str Name identifies a resource
explaindata object Prediction contains predict payload [optional]

Return type

object

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]