Commit 975abaf9 authored by Davis King's avatar Davis King

Fixed a bug in load_libsvm_formatted_data(). Forgot to clear the contents

of the labels output vector before adding the loaded label data.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404161
parent 64afc28e
......@@ -45,6 +45,7 @@ namespace dlib
COMPILE_TIME_ASSERT(is_unsigned_type<key_type>::value);
samples.clear();
labels.clear();
ifstream fin(file_name.c_str());
......
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