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
b653d455
Commit
b653d455
authored
Sep 13, 2022
by
Jakhes
Browse files
Options
Downloads
Patches
Plain Diff
Small update in the older Methods
parent
f65f7180
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/methods/kmeans/kmeans.pl
+0
-15
0 additions, 15 deletions
src/methods/kmeans/kmeans.pl
src/methods/kmeans/kmeans_test.pl
+1
-1
1 addition, 1 deletion
src/methods/kmeans/kmeans_test.pl
src/methods/new_method/new_method.pl
+2
-2
2 additions, 2 deletions
src/methods/new_method/new_method.pl
with
3 additions
and
18 deletions
src/methods/kmeans/kmeans.pl
+
0
−
15
View file @
b653d455
...
...
@@ -54,21 +54,6 @@ foreign(hamerlyKMeans, c, hamerlyKMeans(+integer, +integer, +integer, +pointer(f
foreign
(
pellegMooreKMeans
,
c
,
pellegMooreKMeans
(
+
integer
,
+
integer
,
+
integer
,
+
pointer
(
float_array
),
+
integer
,
+
integer
,
+
integer
,
-
pointer
(
float_array
),
-
integer
,
-
pointer
(
float_array
),
-
integer
,
-
integer
)).
%% +integer , +float32
%% [-integer] , [-float32]
%% matrix input
%% +pointer(float_array), +integer, +integer
%% array input
%% +pointer(float_array), +integer
%% matrix return
%% -pointer(float_array), -integer, -integer
%% array return
%% -pointer(float_array), -integer
%% Defines the functions that get connected from main.cpp
foreign_resource
(
kmeans
,
[
naiveKMeans
,
dualTreeKMeans
,
...
...
This diff is collapsed.
Click to expand it.
src/methods/kmeans/kmeans_test.pl
+
1
−
1
View file @
b653d455
...
...
@@ -6,7 +6,7 @@
:-
begin_tests
(
lists
).
%%
alpha
tests
%% tests
test
(
naiveKMeans
)
:-
convert_list_to_float_array
([
5.1
,
3.5
,
1.4
,
4.9
,
3.0
,
1.4
,
4.7
,
3.2
,
1.3
,
4.6
,
3.1
,
1.5
,
1.4
,
3.0
,
2.1
,
0.1
],
4
,
array
(
Xsize
,
Xrownum
,
X
)),
naiveKMeans
(
20
,
0
,
1
,
X
,
Xsize
,
Xrownum
,
3
,
Y
,
Ysize
,
Centroids
,
Centroidscolnum
,
Centroidsrownum
),
...
...
This diff is collapsed.
Click to expand it.
src/methods/new_method/new_method.pl
+
2
−
2
View file @
b653d455
...
...
@@ -23,8 +23,8 @@ foreign(function, c, function(arguments)).
%% +integer , +float32
%% [-integer] , [-float32]
%% +integer , +float32
, +string
%% [-integer] , [-float32]
, [-string]
%% matrix input
%% +pointer(float_array), +integer, +integer
...
...
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