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
fba83844
Commit
fba83844
authored
Mar 08, 2014
by
Davis King
Browse files
Renamed a variable to avoid a name clash with a #define in Cygwin
parent
97c55972
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/svm/svm_c_linear_trainer.h
dlib/svm/svm_c_linear_trainer.h
+2
-2
No files found.
dlib/svm/svm_c_linear_trainer.h
View file @
fba83844
...
...
@@ -189,7 +189,7 @@ namespace dlib
// Here we use the line search algorithm presented in section 3.1.1 of Franc and Sonnenburg.
const
scalar_type
A0
=
length_squared
(
best_so_far
-
w
);
const
scalar_type
B0
=
dot
(
best_so_far
,
w
-
best_so_far
);
const
scalar_type
B
B0
=
dot
(
best_so_far
,
w
-
best_so_far
);
const
scalar_type
scale_pos
=
(
get_c
()
*
Cpos
)
/
samples
.
size
();
const
scalar_type
scale_neg
=
(
get_c
()
*
Cneg
)
/
samples
.
size
();
...
...
@@ -197,7 +197,7 @@ namespace dlib
ks
.
clear
();
ks
.
reserve
(
samples
.
size
());
scalar_type
f0
=
B0
;
scalar_type
f0
=
B
B0
;
for
(
long
i
=
0
;
i
<
samples
.
size
();
++
i
)
{
const
scalar_type
&
scale
=
(
labels
(
i
)
>
0
)
?
scale_pos
:
scale_neg
;
...
...
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