mira_GetDecName
Returns the name of a decision (class) provided by the classifier.
const char* mira_GetDecName(mrkernel* pmr, 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:
- const int decisionCount = mira_GetDecCount(pmr);
- printf("%d decisions:\n", decisionCount);
- for (int i = 0; i < decisionCount; i++) {
- printf(" %d : %s", i, mira_GetDecName(pmr, i));
- }
Output:
2 decisions:
0 : background
1 : product