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
73463550
Commit
73463550
authored
Nov 04, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarified spec
parent
4f08da0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
cross_validate_sequence_labeler_abstract.h
dlib/svm/cross_validate_sequence_labeler_abstract.h
+2
-2
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 features are 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, this part 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