All URIs are relative to http://X.X.X.X/seldon-deploy/api/v1alpha1
Method | HTTP request | Description |
---|---|---|
predict_file_seldon_deployment | POST /namespaces/{namespace}/seldondeployments/{name}/predictfile | |
predict_file_seldon_pipeline | POST /namespaces/{namespace}/pipelines/{name}/predictfile | |
predict_seldon_deployment | POST /namespaces/{namespace}/seldondeployments/{name}/predict | |
read_predict_curl_seldon_deployment | PUT /namespaces/{namespace}/seldondeployments/{name}/predictcurl | |
read_predict_curl_seldon_pipeline | PUT /namespaces/{namespace}/pipelines/{name}/predictcurl |
object predict_file_seldon_deployment(name, namespace, predict_file)
Create Seldon Deployment prediction
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.PredictApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
predict_file = '/path/to/file.txt' # file | PredictionFile
try:
api_response = api_instance.predict_file_seldon_deployment(name, namespace, predict_file)
pprint(api_response)
except ApiException as e:
print("Exception when calling PredictApi->predict_file_seldon_deployment: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
predict_file | file | PredictionFile |
object
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object predict_file_seldon_pipeline(name, namespace, predict_file)
Create Seldon Pipeline prediction
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.PredictApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
predict_file = '/path/to/file.txt' # file | PredictionFile
try:
api_response = api_instance.predict_file_seldon_pipeline(name, namespace, predict_file)
pprint(api_response)
except ApiException as e:
print("Exception when calling PredictApi->predict_file_seldon_pipeline: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
predict_file | file | PredictionFile |
object
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object predict_seldon_deployment(name, namespace, prediction)
Create Seldon Deployment prediction
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.PredictApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
prediction = NULL # object | Prediction
try:
api_response = api_instance.predict_seldon_deployment(name, namespace, prediction)
pprint(api_response)
except ApiException as e:
print("Exception when calling PredictApi->predict_seldon_deployment: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
prediction | object | Prediction |
object
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object read_predict_curl_seldon_deployment(name, namespace, prediction)
Read the specified Seldon Deployment predict curl
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.PredictApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
prediction = NULL # object | Prediction
try:
api_response = api_instance.read_predict_curl_seldon_deployment(name, namespace, prediction)
pprint(api_response)
except ApiException as e:
print("Exception when calling PredictApi->read_predict_curl_seldon_deployment: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
prediction | object | Prediction |
object
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object read_predict_curl_seldon_pipeline(name, namespace, prediction)
Read the specified Seldon Pipeline predict curl
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.PredictApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
prediction = NULL # object | Prediction
try:
api_response = api_instance.read_predict_curl_seldon_pipeline(name, namespace, prediction)
pprint(api_response)
except ApiException as e:
print("Exception when calling PredictApi->read_predict_curl_seldon_pipeline: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | Name identifies a resource | |
namespace | str | Namespace provides a logical grouping of resources | |
prediction | object | Prediction |
object
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]