Commit 2116cbb7 authored by Davis King's avatar Davis King

Clarified the spec regarding the type of sparse vector supported

by these two objects.
parent 2cce156d
...@@ -199,15 +199,12 @@ namespace dlib ...@@ -199,15 +199,12 @@ namespace dlib
- 0 <= col < nc() - 0 <= col < nc()
ensures ensures
- hashes BASE_FE(row,col) and returns the resulting indicator vector. - hashes BASE_FE(row,col) and returns the resulting indicator vector.
This vector will be represented as an unsorted sparse vector.
- Returns a vector V such that: - Returns a vector V such that:
- V.size() == get_hash_bin_sizes().size() - V.size() == get_hash_bin_sizes().size()
- for all valid i: 0 <= V[i].first < get_num_dimensions() - for all valid i: 0 <= V[i].first < get_num_dimensions()
- if (BASE_FE(row,col) hashes into bin B) then - if (BASE_FE(row,col) hashes into bin B) then
- V contains an element with .first == B and .second == 1 - V contains an element with .first == B and .second == 1
- Note that the returned vector is represented as a sparse vector but
the indices are not in sorted order. Moreover, there might even be
duplicate entires for a particular dimension. This means you can't use
many of the sparse vector operations defined in dlib::sparse_vector.
!*/ !*/
const rectangle get_block_rect ( const rectangle get_block_rect (
......
...@@ -25,7 +25,7 @@ namespace dlib ...@@ -25,7 +25,7 @@ namespace dlib
REQUIREMENTS ON feature_vector_type_ REQUIREMENTS ON feature_vector_type_
- feature_vector_type_ == a dlib::matrix capable of storing column vectors - feature_vector_type_ == a dlib::matrix capable of storing column vectors
or a sparse vector type as defined in dlib/svm/sparse_vector_abstract.h. or an unsorted sparse vector type as defined in dlib/svm/sparse_vector_abstract.h.
INITIAL VALUE INITIAL VALUE
- get_epsilon() == 0.001 - get_epsilon() == 0.001
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment