Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Prolog mlpack Library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
Prolog mlpack Library
Commits
41db4c27
Commit
41db4c27
authored
2 years ago
by
Jakhes
Browse files
Options
Downloads
Patches
Plain Diff
Finishing nca tests
parent
9cda39f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/methods/nca/nca.cpp
+7
-1
7 additions, 1 deletion
src/methods/nca/nca.cpp
with
7 additions
and
1 deletion
src/methods/nca/nca.cpp
+
7
−
1
View file @
41db4c27
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment