I have trained my data (using Random Forest) and saved an XML file for my predictor. Normally, the class labels from the training data can be obtained from the "get_class_labels_map()" method. I have class labels that are alphabets so I end up with std::map<std::string, int="">.
However, after I load the predictor, how do I access the class labels in the predictor? In other words, when I make a prediction, the method returns a float. I was hoping that I could somehow then convert this float to its corresponding alphabet based on the class labels from the training data.
Any suggestion would be greatly appreciated!