Model Explainer Example

Explainer for Iris model with Poetry-defined Environment

Prerequisites

  • A kubernetes cluster with kubectl configured

  • poetry

  • rclone

  • curl

Setup Seldon Core

Use the setup notebook to Setup Cluster with Ambassador Ingress and Install Seldon Core. Instructions also online.

We will assume that ambassador (or Istio) ingress is port-forwarded to localhost:8003

Setup MinIO

Use the provided notebook to install Minio in your cluster. Instructions also online.

We will assume that MinIO service is port-forwarded to localhost:8090

%%writefile rclone.conf
[s3]
type = s3
provider = minio
env_auth = false
access_key_id = minioadmin
secret_access_key = minioadmin
endpoint = http://localhost:8090

Poetry

We will use poetry.lock to fully define the explainer environment. Install poetry following official documentation. Usually this goes down to

Deploy Iris Model

Train Explainer

Prepare Training Environment

We are going to use pyproject.toml and poetry.lock files from Alibi Explain Server. This will allow us to create environment that will match the runtime one.

Prepare Training Script

Save and deploy Explainer

Test Deployed explainer

Last updated

Was this helpful?