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
9caa96c9
Commit
9caa96c9
authored
Apr 29, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarified spec and fixed typos.
parent
552ca77a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
find_max_factor_graph_potts_abstract.h
dlib/graph_cuts/find_max_factor_graph_potts_abstract.h
+5
-4
No files found.
dlib/graph_cuts/find_max_factor_graph_potts_abstract.h
View file @
9caa96c9
...
@@ -174,13 +174,14 @@ namespace dlib
...
@@ -174,13 +174,14 @@ namespace dlib
- for all valid i and j:
- for all valid i and j:
- prob.factor_value_disagreement(i,j) == prob.factor_value_disagreement(j,i)
- prob.factor_value_disagreement(i,j) == prob.factor_value_disagreement(j,i)
ensures
ensures
- computes the model score for the given potts_problem.
To
define this
- computes the model score for the given potts_problem.
We
define this
precisely:
precisely
below
:
- let L(i) == the boolean label of the ith variable in prob. Or in other
- let L(i) == the boolean label of the ith variable in prob. Or in other
words, L(i) == (prob.get_label(i) != 0).
words, L(i) == (prob.get_label(i) != 0).
- let F == the sum of all values of prob.factor_value(i) where whenever L(i) == true.
- let F == the sum of all values of prob.factor_value(i) for only i values
where L(i) == true.
- Let D == the sum of all values of prob.factor_value_disagreement(i,j)
- Let D == the sum of all values of prob.factor_value_disagreement(i,j)
whenever the following conditions are true about i and j
:
for only i and j values which meet the following conditions
:
- i and j are neighbors in the graph defined by prob, that is,
- i and j are neighbors in the graph defined by prob, that is,
it is valid to call prob.factor_value_disagreement(i,j).
it is valid to call prob.factor_value_disagreement(i,j).
- L(i) != L(j)
- L(i) != L(j)
...
...
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