Skip to content
Snippets Groups Projects
Commit 41db4c27 authored by Jakhes's avatar Jakhes
Browse files

Finishing nca tests

parent 9cda39f8
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,12 @@ void nca( char const *optimizerType, ...@@ -37,6 +37,12 @@ void nca( char const *optimizerType,
{ {
// convert the Prolog array to arma::mat // convert the Prolog array to arma::mat
mat data = convertArrayToMat(dataMatArr, dataMatSize, dataMatRowNum); mat data = convertArrayToMat(dataMatArr, dataMatSize, dataMatRowNum);
// check if labels fit the data
if (data.n_cols != rawLabelsArrSize)
{
raisePrologSystemExeption("The number of data points does not match the number of labels!");
return;
}
// convert the Prolog array to arma::rowvec // convert the Prolog array to arma::rowvec
Row< size_t > rawLabels = convertArrayToVec(rawLabelsArr, rawLabelsArrSize); Row< size_t > rawLabels = convertArrayToVec(rawLabelsArr, rawLabelsArrSize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment