Skip to main content

ML_adapter for numpy.

Project description

waylay-ml-adapter-numpy

This provides the ml_adapter.numpy module as Waylay ML Adapter for models that use numpy as data representation.

This waylay-ml-adapter-numpy module provides marshalling for (custom) models that use numpy as native data representation.

pip install waylay-ml-adapter-numpy

Exported classes

This module exports the following classes:

Classes exported by ml_adapter.numpy

The module ml_adapter.numpy exports the following classes

V1NumpyModelAdapter

ml_adapter.numpy.adapter.V1NumpyModelAdapter extending ml_adapter.base.adapter.ModelAdapterBase

Adapts a callable with numpy arrays as input and output.

Supports dill, joblib or selfserializing model assets.

V1NumpyMarshaller

ml_adapter.numpy.marshall.V1NumpyMarshaller extending ml_adapter.base.marshall.v1.base.V1ValueOrDictRequestMarshallerBase, ml_adapter.base.marshall.v1.base.V1ValueOrDictResponseMarshallerBase, ml_adapter.numpy.marshall.V1NumpyEncoding

Converts v1 payload from and to numpy arrays.

V1NumpyNoLoadAdapter

ml_adapter.numpy.adapter.V1NumpyNoLoadAdapter extending ml_adapter.numpy.adapter.V1NumpyModelAdapter

Adapts a callable with numpy arrays as input and output.

This adapter does not manage the model as a standard asset. Relies on the model or model_class constructor arguments to define the model. When model is not provided, any model_path is passed as a constructor argument to model_class if the signature allows it.

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

waylay_ml_adapter_numpy-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waylay_ml_adapter_numpy-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file waylay_ml_adapter_numpy-0.1.0.tar.gz.

File metadata

  • Download URL: waylay_ml_adapter_numpy-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for waylay_ml_adapter_numpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 448b89fbc418877042c75f0de7a2ef655fca1aaeff58c24c24a05e9732aa02ff
MD5 1d863cbc5ba5c0ecd79140644402e8f4
BLAKE2b-256 18b4c39c9323b53735b7a3f3bf39961a7d36c8abcfbc69b27afca7fd5f82dca5

See more details on using hashes here.

File details

Details for the file waylay_ml_adapter_numpy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for waylay_ml_adapter_numpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2fd5e813a5870e941dd2ed0e6951c0eea84728967d156d82e9eab3c4f7e8e27
MD5 c450d3902c2b222a9325f13bca1165c7
BLAKE2b-256 810582aaaad6ee12d3a19c4ef1f60c3f178e7d62e5d64fee6c8dcd5b76910698

See more details on using hashes here.

Supported by

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