Gaussian Naive Bayes (C API)

typedef struct _EmlBayesModel EmlBayesModel

Model.

Normally the initialization code is generated by emlearn.

int32_t eml_bayes_predict(EmlBayesModel *model, const float values[], int32_t values_length)

Make prediction and return most-probable class.

Parameters:
  • model – EmlBayesModel instance

  • values – Input data

  • values_length – Length of input data

Returns:

Class index on success, or -EmlError on failure