I would like to convert my categorical vector of labels to a numeric index vector and then convert my numeric labels back into categories.
How can I convert new index labels back to categorical labels ?
i.e how do I know the mapping from 'class name' to 'index' that the 'grp2idx' function uses ?
Best Answer