Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Walkthrough of Seldon Enterprise Platform features












alibi-detect for Seldon Core deployments - currently only offline drift detection on input data streams to ML models are supported. Seldon Enterprise Platform enables monitoring of drift detection metrics in real-time and on historical data, both at a feature-level and batch-level as per the detection method. Find documentation on the supported alibi-detect drift detection methods in the table below.



















API reference
stagingexport ML_PLATFORM_HOST="https://ml.example.com"
curl -k -X GET \
"$ML_PLATFORM_HOST/seldon-deploy/api/v1alpha1/namespaces/staging/seldondeployments" \
-H "Authorization: Bearer $TOKEN"pip install seldon-deploy-sdkexport KEYCLOAK_HOST="https://ml.example.com"
export KEYCLOAK_REALM="deploy-realm"
export CALLBACK_URL="https://ml.example.com/seldon-deploy/auth/callback"
export _encoded_callback_url=$( jq -rn --arg u $CALLBACK_URL '$u | @uri' )
export _auth_code_query="response_type=code&client_id=sd-api&scope=openid&state=sd-sdk-state&redirect_uri=${_encoded_callback_url}"
export _auth_code_endpoint="${KEYCLOAK_HOST}/auth/realms/${KEYCLOAK_REALM}/protocol/openid-connect/auth"
export _auth_code_url=$( curl -s -o /dev/null -w '%{url_effective}' -G "${_auth_code_endpoint}?${_auth_code_query}" )
echo "${_auth_code_url}"export CLIENT_ID="sd-api"
export CLIENT_SECRET="sd-api-secret"
export _token_endpoint="${KEYCLOAK_HOST}/auth/realms/${KEYCLOAK_REALM}/protocol/openid-connect/token"
export RESULT=$( curl -s -X POST "${_token_endpoint}" \
--data "grant_type=authorization_code" \
--data "client_id=${CLIENT_ID}" \
--data "client_secret=${CLIENT_SECRET}" \
--data "redirect_uri=${_encoded_callback_url}" \
--data "code=<YOUR AUTHORIZATION CODE>"
)
export TOKEN=$( echo $RESULT | sed -E 's/.*id_token":"([^"]+)".*/\1/g' )
echo "TOKEN=$TOKEN"export CLIENT_ID="sd-api"
export CLIENT_SECRET="sd-api-secret"
export KEYCLOAK_HOST="https://ml.example.com"
export KEYCLOAK_REALM="deploy-realm"
export _token_endpoint="${KEYCLOAK_HOST}/auth/realms/${KEYCLOAK_REALM}/protocol/openid-connect/token"
export RESULT=$( curl -s -X POST --data "$_payload" "${_token_endpoint}" \
--data "grant_type=client_credentials" \
--data "scope=openid" \
--data "client_id=${CLIENT_ID}" \
--data "client_secret=${CLIENT_SECRET}"
)
export TOKEN=$( echo $RESULT | sed -E 's/.*id_token":"([^"]+)".*/\1/g' )
echo "TOKEN=$TOKEN"from seldon_deploy_sdk import Configuration
from seldon_deploy_sdk.auth import OIDCAuthenticator
config = Configuration()
config.auth_method = "client_credentials"
config.host = "https://ml.example.com/seldon-deploy/api/v1alpha1"
config.oidc_server = "https://ml.example.com/auth/realms/deploy-realm"
config.oidc_client_id = "sd-api"
config.oidc_client_secret = "sd-api-secret"
# Authenticate against an OIDC provider
auth = OIDCAuthenticator(config)
id_token = auth.authenticate()
# Configure the obtained ID token as the one to use downstream
config.id_token = id_token
print(config.id_token)export SD_USER="[email protected]"
export SD_PASSWORD="12341234"
export CLIENT_ID="sd-api"
export CLIENT_SECRET="sd-api-secret"
export KEYCLOAK_HOST="https://ml.example.com"
export KEYCLOAK_REALM="deploy-realm"
export _token_endpoint="$KEYCLOAK_HOST/auth/realms/$KEYCLOAK_REALM/protocol/openid-connect/token"
export RESULT=$( curl -s -X POST "${_token_endpoint}" \
--data "username=${SD_USER}" \
--data "password=${SD_PASSWORD}" \
--data "client_id=${CLIENT_ID}" \
--data "client_secret=${CLIENT_SECRET}" \
--data "grant_type=password" \
--data "scope=openid"
)
export TOKEN=$( echo $RESULT | sed -E 's/.*id_token":"([^"]+)".*/\1/g' )
echo "TOKEN=$TOKEN"from seldon_deploy_sdk import Configuration
from seldon_deploy_sdk.auth import OIDCAuthenticator
config = Configuration()
config.auth_method = "password_grant"
config.host = "https://ml.example.com/seldon-deploy/api/v1alpha1"
config.oidc_server = "https://ml.example.com/auth/realms/deploy-realm"
config.oidc_client_id = "sd-api"
config.oidc_client_secret = "sd-api-secret"
config.username = "[email protected]"
config.password = "12341234"
# Authenticate against an OIDC provider
auth = OIDCAuthenticator(config)
id_token = auth.authenticate()
# Configure the obtained ID token as the one to use downstream
config.id_token = id_token
print(config.id_token)from seldon_deploy_sdk import Configuration
from seldon_deploy_sdk.auth import SessionAuthenticator
config = Configuration()
config.auth_method = "password_grant"
config.host = "https://ml.example.com/seldon-deploy/api/v1alpha1"
config.username = "[email protected]"
config.password = "12341234"
# Authenticate against an auth provider
auth = SessionAuthenticator(config)
id_token = auth.authenticate()
# Configure the obtained ID cookie as the one to use downstream
config.id_token = id_token
print(config.id_token)






from seldon_deploy_sdk import Configuration, ApiClient, SeldonDeploymentsApi
config = Configuration()
config.host = "https://ml.example.com/seldon-deploy/api/v1alpha1"
config.id_token = "<AUTH_TOKEN>"
api_client = ApiClient(config)
# List current machine learning deployments
sdep_api = SeldonDeploymentsApi(api_client)
sdeps = sdep_api.list_seldon_deployments("staging")
print(sdeps)from seldon_deploy_sdk import Configuration
from seldon_deploy_sdk.auth import OIDCAuthenticator
config = Configuration()
config.auth_method = "auth_code"
config.host = "https://ml.example.com/seldon-deploy/api/v1alpha1"
config.oidc_server = "https://ml.example.com/auth/realms/deploy-realm"
config.oidc_client_id = "sd-api"
config.oidc_client_secret = "sd-api-secret"
# Authenticate against an OIDC provider
auth = OIDCAuthenticator(config)
id_token = auth.authenticate()# Configure the obtained ID token as the one to use downstream
config.id_token = id_token
print(config.id_token)# Import the Configuration class if you haven't already
from seldon_deploy_sdk import Configuration
config = Configuration()
...
# Disable certificate verification
config.verify_ssl = False
...