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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file waylay_ml_adapter_numpy-0.1.1.tar.gz.
File metadata
- Download URL: waylay_ml_adapter_numpy-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50e04397dea861dfd706db33d07298ce3b2a12441439a96cedc0a0c516506fd5
|
|
| MD5 |
7eccda0ae12763cec39a952ff16c9ab3
|
|
| BLAKE2b-256 |
d39222cb9e077f8b7f9fc9dad675bcbd3cfd80e3f793ea8cc474b7973728a899
|
File details
Details for the file waylay_ml_adapter_numpy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: waylay_ml_adapter_numpy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c749cc8423f0d46e2f89f6059ae98124a1ef2e7cfe1e12683826eb94368e2be4
|
|
| MD5 |
8090c375a81bbd7b2dcdca7a75d20003
|
|
| BLAKE2b-256 |
dd0cd62d25219a3afd8efdd3e07a6c32fba94eead6e43b407b760e863c641d1c
|