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
2213c428
Commit
2213c428
authored
Dec 17, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated docs
parent
a88a00d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
optimization.xml
docs/docs/optimization.xml
+27
-0
release_notes.xml
docs/docs/release_notes.xml
+1
-0
term_index.xml
docs/docs/term_index.xml
+4
-1
No files found.
docs/docs/optimization.xml
View file @
2213c428
...
...
@@ -92,6 +92,7 @@
<item>
parse_tree_to_string
</item>
<item>
find_trees_not_rooted_with_tag
</item>
<item>
upper_bound_function
</item>
<item>
call_function_and_expand_args
</item>
</section>
</top>
...
...
@@ -1281,6 +1282,32 @@ Or it can use the elastic net regularizer:
</component>
<!-- ************************************************************************* -->
<component>
<name>
call_function_and_expand_args
</name>
<file>
dlib/global_optimization.h
</file>
<spec_file
link=
"true"
>
dlib/global_optimization/find_max_global_abstract.h
</spec_file>
<description>
This routine allows you to pass a
<tt>
dlib::matrix
<
double,0,1
>
</tt>
object to
a function that takes simple
<tt>
double
</tt>
arguments. It does this by automatically
expanding the matrix elements and invoking the function. For example, suppose you had
a function like this:
<code_box>
double f(double x, double y, double z);
</code_box>
You could then call f() like this:
<code_box>
matrix
<
double,0,1
>
args = {3,4,5};
call_function_and_expand_args(f, args); // calls: f(3,4,5)
</code_box>
This kind of thing is convenient when writing optimizers like
<a
href=
"#find_max_global"
>
find_max_global
</a>
since it allows a wide range of
input functions to be given to the optimizer, including functions with
explicitly named arguments like x,y,z as shown above.
</description>
</component>
<!-- ************************************************************************* -->
...
...
docs/docs/release_notes.xml
View file @
2213c428
...
...
@@ -19,6 +19,7 @@ New Features and Improvements:
- Added solve_trust_region_subproblem_bounded()
- Added tools for doing global optimization. The main new tools here are find_max_global() and global_function_search.
- Updated model_selection_ex.cpp and optimization_ex.cpp to use these new tools.
- added call_function_and_expand_args()
- Added loss_ranking_ layer
- Added loss_epsilon_insensitive_ layer
- Added softmax_all layer.
...
...
docs/docs/term_index.xml
View file @
2213c428
...
...
@@ -264,8 +264,11 @@
<term
file=
"optimization.html"
name=
"find_max_box_constrained"
include=
"dlib/optimization.h"
/>
<term
file=
"optimization.html"
name=
"find_max_global"
include=
"dlib/global_optimization.h"
/>
<term
file=
"optimization.html"
name=
"find_min_global"
include=
"dlib/global_optimization.h"
/>
<term
file=
"optimization.html"
name=
"global_function_search"
include=
"dlib/global_optimization.h"
/>
<term
file=
"optimization.html"
name=
"global_function_search"
include=
"dlib/global_optimization.h"
/>
<term
file=
"optimization.html"
name=
"upper_bound_function"
include=
"dlib/global_optimization.h"
/>
<term
file=
"optimization.html"
name=
"call_function_and_expand_args"
include=
"dlib/global_optimization.h"
/>
<term
file=
"dlib/global_optimization/find_max_global_abstract.h.html"
name=
"FOREVER"
include=
"dlib/global_optimization.h"
/>
<term
file=
"dlib/global_optimization/find_max_global_abstract.h.html"
name=
"max_function_calls"
include=
"dlib/global_optimization.h"
/>
<term
file=
"optimization.html"
name=
"max_cost_assignment"
include=
"dlib/optimization.h"
/>
<term
link=
"optimization.html#max_cost_assignment"
name=
"Hungarian Algorithm"
include=
"dlib/optimization.h"
/>
<term
file=
"optimization.html"
name=
"max_sum_submatrix"
include=
"dlib/optimization.h"
/>
...
...
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