Commit 4162c18f authored by Davis King's avatar Davis King

minor change to avoid compiler warning in visual studio.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404200
parent f6ddef17
......@@ -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);
......
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