Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0c6b95ef
Commit
0c6b95ef
authored
May 05, 2012
by
Davis King
Browse files
Simplified the code a little.
parent
9ab53f01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/svm/structural_svm_graph_labeling_problem.h
dlib/svm/structural_svm_graph_labeling_problem.h
+2
-2
No files found.
dlib/svm/structural_svm_graph_labeling_problem.h
View file @
0c6b95ef
...
...
@@ -198,7 +198,7 @@ namespace dlib
// accumulate the node vectors
if
(
label_i
==
true
)
set_rowm
(
psi
,
range
(
edge_dims
,
psi
.
size
()
-
1
))
=
rowm
(
psi
,
range
(
edge_dims
,
psi
.
size
()
-
1
))
+
sample
.
node
(
i
).
data
;
set_rowm
(
psi
,
range
(
edge_dims
,
psi
.
size
()
-
1
))
+
=
sample
.
node
(
i
).
data
;
for
(
unsigned
long
n
=
0
;
n
<
sample
.
node
(
i
).
number_of_neighbors
();
++
n
)
{
...
...
@@ -209,7 +209,7 @@ namespace dlib
// the labels disagree.
if
(
i
<
j
&&
label_i
!=
label_j
)
{
set_rowm
(
psi
,
range
(
0
,
edge_dims
-
1
))
=
rowm
(
psi
,
range
(
0
,
edge_dims
-
1
))
-
sample
.
node
(
i
).
edge
(
n
);
set_rowm
(
psi
,
range
(
0
,
edge_dims
-
1
))
-
=
sample
.
node
(
i
).
edge
(
n
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment