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
535de71d
Commit
535de71d
authored
Feb 18, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
abaa238f
3e9b7ebb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
svm_c_linear_dcd_trainer.h
dlib/svm/svm_c_linear_dcd_trainer.h
+3
-0
svm_c_linear_dcd_trainer_abstract.h
dlib/svm/svm_c_linear_dcd_trainer_abstract.h
+12
-4
No files found.
dlib/svm/svm_c_linear_dcd_trainer.h
View file @
535de71d
...
...
@@ -414,6 +414,9 @@ namespace dlib
dlib
::
rand
rnd
;
public
:
const
std
::
vector
<
scalar_type
>&
get_alpha
()
const
{
return
alpha
;
}
friend
void
serialize
(
const
optimizer_state
&
item
,
std
::
ostream
&
out
)
{
const
int
version
=
1
;
...
...
dlib/svm/svm_c_linear_dcd_trainer_abstract.h
View file @
535de71d
...
...
@@ -304,10 +304,16 @@ namespace dlib
!*/
// optimizer_state is used to record the internal state of the SVM optimizer. It
// can be used with the following train() routine to warm-start the optimizer.
// Note, that optimizer_state objects are serializable but are otherwise completely
// opaque to the user.
class
optimizer_state
;
// can be used with the following train() routine to warm-start the optimizer or
// access the optimal alpha values (see the Hsieh paper mentioned above). The
// optimizer_state objects are serializable and allow you to get the alphas, but
// are otherwise completely opaque to the user.
class
optimizer_state
{
public
:
const
std
::
vector
<
scalar_type
>&
get_alpha
(
)
const
;
};
template
<
typename
in_sample_vector_type
,
...
...
@@ -355,6 +361,8 @@ namespace dlib
- #state == the internal state of the optimizer at the solution to the SVM
problem. Therefore, passing #state to a new call to train() will start
the optimizer from the current solution.
- #state.get_alpha().size() == x.size()
- #state.get_alpha() == the optimal alpha/dual values learned by the optimizer.
- returns a decision function F with the following properties:
- F.alpha.size() == 1
- F.basis_vectors.size() == 1
...
...
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