Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
fba83844
Commit
fba83844
authored
Mar 09, 2014
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed a variable to avoid a name clash with a #define in Cygwin
parent
97c55972
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
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
B
0
=
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
B
0
;
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