Explore Predictors on Muna
Explore public predictors on Muna. These predictors can be used by any user on the Muna platform.
Making Predictions
Making predictions with Muna can be done in as little as two lines of code.Using Prediction Values
Muna supports a fixed set of value types for prediction input and output values:Floating Point Values
Floating Point Values
Muna supports the following floating-point numbers:
Muna supports floating point vectors (i.e. one-dimensional floating point tensors):Muna supports floating point tensors:
Muna value type | C/C++ type | Description |
---|---|---|
float16 | float16_t | IEEE 754 16-bit floating point number. |
float32 | float | IEEE 754 32-bit floating point number. |
float64 | double | IEEE 754 64-bit floating point number. |
In languages that don’t support fixed-size floating point scalars, the data type for floating point values
defaults to
float32
. Use a tensor constructor to explicitly specify the data type.Support for half-precision floating point scalars
float16
is planned for the future depending on language support.Although Muna supports input vectors, predictors will always output either scalars or
Tensor
instances—never plain vectors.Integer Values
Integer Values
Muna supports several signed and unsigned integer scalars:
Muna supports integer vectors (i.e. one-dimensional integer tensors) of the aforementioned integer types:Muna supports integer tensors:
Muna value type | C/C++ type | Description |
---|---|---|
int8 | int8_t | Signed 8-bit integer. |
int16 | int16_t | Signed 16-bit integer. |
int32 | int32_t | Signed 32-bit integer. |
int64 | int64_t | Signed 64-bit integer. |
uint8 | uint8_t | Unsigned 8-bit integer. |
uint16 | uint16_t | Unsigned 16-bit integer. |
uint32 | uint32_t | Unsigned 32-bit integer. |
uint64 | uint64_t | Unsigned 64-bit integer. |
When integer scalars are passed to predictors, the data type defaults to
int32
. Use
a tensor constructor to explicitly specify the data type.Although Muna supports input vectors, predictors will always output either scalars or
Tensor
instances—never plain vectors.Unsigned integer tensors are not supported in our Android client because of missing language support in Java.
Boolean Values
Boolean Values
Muna supports boolean scalars:Muna supports boolean vectors (i.e. one-dimensional boolean tensors):Muna supports boolean tensors:
Although Muna supports input vectors, predictors will always output either scalars or
Tensor
instances—never plain vectors.Muna assumes that boolean values are 1 byte.
String Values
String Values
Muna supports string values:
List Values
List Values
Muna supports lists of values, each with potentially different types:
Input list values must be JSON-serializable.
Dictionary Values
Dictionary Values
Muna supports dictionary values:
Input dictionary values must be JSON-serializable.
Image Values
Image Values
Muna supports images, represented as raw pixel buffers with 8 bytes per pixel and interleaved by channel.
Muna supports three pixel buffer formats:
Some client SDKs provide
Pixel format | Channels | Description |
---|---|---|
A8 | 1 | Single channel luminance or alpha image. |
RGB888 | 3 | Color image without alpha channel. |
RGBA8888 | 4 | Color image with alpha channel. |
Image
utility types for working with images:Binary Values
Binary Values
Muna supports binary blobs:
Because Muna’s security model prohibits file system access, binary input values
are always fully read into memory before being passed to the predictor.To make predictions on large files, consider mapping the file into memory
using
mmap
or your environment’s equivalent.