Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
9caa96c9
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "c9fc4a9d26b48639f1848168327c26321dc7c126"
Commit
9caa96c9
authored
Apr 28, 2012
by
Davis King
Browse files
clarified spec and fixed typos.
parent
552ca77a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dlib/graph_cuts/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