mirror of https://github.com/davisking/dlib.git
minor change to avoid compiler warning in visual studio.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404200
This commit is contained in:
parent
f6ddef170e
commit
4162c18f69
|
@ -62,7 +62,7 @@ namespace dlib
|
|||
{
|
||||
sparse_vector::assign(psi, samples[idx]);
|
||||
// Add a constant -1 to account for the bias term.
|
||||
psi.push_back(std::make_pair(dims-1,-1));
|
||||
psi.push_back(std::make_pair(dims-1,static_cast<scalar_type>(-1)));
|
||||
|
||||
// Find which distinct label goes with this psi.
|
||||
const long label_idx = index_of_max(vector_to_matrix(distinct_labels) == labels[idx]);
|
||||
|
@ -99,7 +99,7 @@ namespace dlib
|
|||
|
||||
sparse_vector::assign(psi, samples[idx]);
|
||||
// add a constant -1 to account for the bias term
|
||||
psi.push_back(std::make_pair(dims-1,-1));
|
||||
psi.push_back(std::make_pair(dims-1,static_cast<scalar_type>(-1)));
|
||||
|
||||
offset_feature_vector(psi, dims*best_idx);
|
||||
|
||||
|
|
Loading…
Reference in New Issue