Skip to main content

Supervisor-Detect runtime for KozmoServer

Project description

Supervisor-Detect runtime for KozmoServer

This package provides a KozmoServer runtime compatible with supervisor-detect models.

Usage

You can install the kozmoserver-supervisor-detect runtime, alongside kozmoserver, as:

pip install kozmoserver kozmoserver-supervisor-detect

For further information on how to use KozmoServer with Supervisor-Detect, you can check out this worked out example.

Content Types

If no content type is present on the request or metadata, the Supervisor-Detect runtime will try to decode the payload as a NumPy Array. To avoid this, either send a different content type explicitly, or define the correct one as part of your model's metadata.

Settings

The Supervisor Detect runtime exposes a couple setting flags which can be used to customise how the runtime behaves. These settings can be added under the parameters.extra section of your model-settings.json file, e.g.

---
emphasize-lines: 6-8
---
{
  "name": "drift-detector",
  "implementation": "kozmoserver_supervisor_detect.SupervisorDetectRuntime",
  "parameters": {
    "uri": "./supervisor-detect-artifact/",
    "extra": {
      "batch_size": 5
    }
  }
}

Reference

You can find the full reference of the accepted extra settings for the Supervisor Detect runtime below:

.. autopydantic_settings:: kozmoserver_supervisor_detect.runtime.SupervisorDetectSettings

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page