Created
September 25, 2020 16:04
-
-
Save Aakash-kaushik/790d6ea0c36e34819fd03ca28a8e9f87 to your computer and use it in GitHub Desktop.
helper function to get labels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arma::Row<size_t> getLabels(arma::mat predOut) | |
{ | |
arma::Row<size_t> predLabels(predOut.n_cols); | |
for(arma::uword i = 0; i < predOut.n_cols; ++i) | |
{ | |
predLabels(i) = predOut.col(i).index_mat() + 1; | |
} | |
return predLabels; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment