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
73463550
Commit
73463550
authored
Nov 03, 2011
by
Davis King
Browse files
Clarified spec
parent
4f08da0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
dlib/svm/cross_validate_sequence_labeler_abstract.h
dlib/svm/cross_validate_sequence_labeler_abstract.h
+2
-2
dlib/svm/sequence_labeler_abstract.h
dlib/svm/sequence_labeler_abstract.h
+7
-6
No files found.
dlib/svm/cross_validate_sequence_labeler_abstract.h
View file @
73463550
...
...
@@ -33,7 +33,7 @@ namespace dlib
- The confusion matrix C returned by this function has the following properties.
- C.nc() == labeler.num_labels()
- C.nr() == labeler.num_labels()
- C(T,P) == the number of times a s
ample
with label T was predicted
- C(T,P) == the number of times a s
equence element
with label T was predicted
to have a label of P.
- Any samples with a label value >= labeler.num_labels() are ignored. That
is, samples with labels the labeler hasn't ever seen before are ignored.
...
...
@@ -69,7 +69,7 @@ namespace dlib
- The confusion matrix C returned by this function has the following properties.
- C.nc() == trainer.num_labels()
- C.nr() == trainer.num_labels()
- C(T,P) == the number of times a s
ample
with label T was predicted
- C(T,P) == the number of times a s
equence element
with label T was predicted
to have a label of P.
!*/
...
...
dlib/svm/sequence_labeler_abstract.h
View file @
73463550
...
...
@@ -30,9 +30,10 @@ namespace dlib
is calculated. It also defines how many output labels there are as
well as the order of the model.
Finally, note that PSI(x,y) is a sum of feature vectors, each extracted
at one of the positions of the input sequence x. Each of these constituent
feature vectors is defined by the get_features() method of this class.
Finally, note that PSI(x,y) is a sum of feature vectors, each derived
from the entire input sequence x but only part of the label sequence y.
Each of these constituent feature vectors is defined by the get_features()
method of this class.
!*/
public:
...
...
@@ -123,9 +124,9 @@ namespace dlib
- for all valid i:
- interprets y(i) as the label corresponding to x[position-i]
- This function computes the part of PSI() corresponding to the x[position]
element of the input sequence.
The feature
s ar
e
returned as
a sparse
vector by invoking set_feature(). For example, to set the feature
with
an index of 55 to the value of 1 this method would call:
element of the input sequence.
Moreover, thi
s
p
ar
t of PSI() is
returned as
a sparse
vector by invoking set_feature(). For example, to set the feature
with
an index of 55 to the value of 1 this method would call:
set_feature(55);
Or equivalently:
set_feature(55,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