Returns the name of a decision (class) provided by the classifier.


const char* mira_GetDecName(mrkernelpmr, int decInd);


Parameters:

  • pmr: A pointer to the runtime kernel returned by mira_Init.
  • decInd: Decision index to get the name from, must be less than mira_GetDecCount.


Return value:

The name of the decision as string or NULL if there was an error.


Description:

mira_GetDecName will return the name of a decision, it requires that a model has been loaded using mira_LoadModel.


Example:

  1. const int decisionCount = mira_GetDecCount(pmr);
  2. printf("%d decisions:\n", decisionCount);
  3. for (int i = 0; i < decisionCount; i++) {
  4.     printf(" %d : %s", imira_GetDecName(pmr, i));
  5. }


Output:

2 decisions:

 0 : background

 1 : product