Commit 0c3952d5 authored by Davis King's avatar Davis King

Minor changes to avoid compiler warnings from visual studio.

parent 758856df
...@@ -48,7 +48,7 @@ matrix<double,0,1> apply_cca_transform ( ...@@ -48,7 +48,7 @@ matrix<double,0,1> apply_cca_transform (
const sparse_vect& v const sparse_vect& v
) )
{ {
pyassert(max_index_plus_one(v) <= m.nr(), "Invalid Inputs"); pyassert((long)max_index_plus_one(v) <= m.nr(), "Invalid Inputs");
return sparse_matrix_vector_multiply(trans(m), v); return sparse_matrix_vector_multiply(trans(m), v);
} }
......
...@@ -137,7 +137,7 @@ const binary_test _cross_validate_trainer ( ...@@ -137,7 +137,7 @@ const binary_test _cross_validate_trainer (
const trainer_type& trainer, const trainer_type& trainer,
const std::vector<typename trainer_type::sample_type>& x, const std::vector<typename trainer_type::sample_type>& x,
const std::vector<double>& y, const std::vector<double>& y,
const long folds const unsigned long folds
) )
{ {
pyassert(is_binary_classification_problem(x,y), "Training data does not make a valid training set."); pyassert(is_binary_classification_problem(x,y), "Training data does not make a valid training set.");
......
...@@ -33,7 +33,7 @@ string cv__repr__ (const cv& v) ...@@ -33,7 +33,7 @@ string cv__repr__ (const cv& v)
{ {
std::ostringstream sout; std::ostringstream sout;
sout << "dlib.vector(["; sout << "dlib.vector([";
for (unsigned long i = 0; i < v.size(); ++i) for (long i = 0; i < v.size(); ++i)
{ {
sout << v(i); sout << v(i);
if (i+1 < v.size()) if (i+1 < v.size())
......
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