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
3ab07899
Commit
3ab07899
authored
May 20, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added initial version of a distributed structural svm solver.
parent
509c1305
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
117 additions
and
0 deletions
+117
-0
structural_svm_distributed.h
dlib/svm/structural_svm_distributed.h
+0
-0
structural_svm_distributed_abstract.h
dlib/svm/structural_svm_distributed_abstract.h
+116
-0
svm_threaded.h
dlib/svm_threaded.h
+1
-0
No files found.
dlib/svm/structural_svm_distributed.h
0 → 100644
View file @
3ab07899
This diff is collapsed.
Click to expand it.
dlib/svm/structural_svm_distributed_abstract.h
0 → 100644
View file @
3ab07899
// Copyright (C) 2011 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#undef DLIB_STRUCTURAL_SVM_DISTRIBUTeD_ABSTRACT_H__
#ifdef DLIB_STRUCTURAL_SVM_DISTRIBUTeD_ABSTRACT_H__
#include "structural_svm_problem_abstract.h"
#include "../optimization/optimization_oca_abstract.h"
namespace
dlib
{
// ----------------------------------------------------------------------------------------
class
svm_struct_processing_node
:
noncopyable
{
/*!
WHAT THIS OBJECT REPRESENTS
!*/
public
:
template
<
typename
T
,
typename
U
>
svm_struct_processing_node
(
const
structural_svm_problem
<
T
,
U
>&
problem
,
unsigned
short
port
,
unsigned
short
num_threads
);
/*!
!*/
};
// ----------------------------------------------------------------------------------------
class
svm_struct_controller_node
:
noncopyable
{
/*!
WHAT THIS OBJECT REPRESENTS
!*/
public
:
svm_struct_controller_node
(
);
/*!
!*/
void
set_epsilon
(
double
eps
);
/*!
!*/
double
get_epsilon
(
)
const
;
/*!
!*/
void
be_verbose
(
);
/*!
!*/
void
be_quiet
(
);
/*!
!*/
double
get_c
(
)
const
;
/*!
!*/
void
set_c
(
double
C
);
/*!
!*/
void
add_processing_node
(
const
std
::
string
&
ip
,
unsigned
short
port
);
/*!
!*/
unsigned
long
get_num_processing_nodes
(
)
const
;
/*!
!*/
void
remove_processing_nodes
(
);
/*!
!*/
template
<
typename
matrix_type
>
double
operator
()
(
const
oca
&
solver
,
matrix_type
&
w
)
const
;
/*!
!*/
};
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_STRUCTURAL_SVM_DISTRIBUTeD_ABSTRACT_H__
dlib/svm_threaded.h
View file @
3ab07899
...
...
@@ -6,6 +6,7 @@
#include "svm.h"
#include "svm/svm_threaded.h"
#include "svm/structural_svm_problem_threaded.h"
#include "svm/structural_svm_distributed.h"
#endif // DLIB_SVm_THREADED_HEADER
...
...
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