Commit 78ed429f authored by Davis King's avatar Davis King

Switched the rbf_network_trainer to use the fill_lisf() function rather than

it's simple loop.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403688
parent 09f0b541
...@@ -115,10 +115,7 @@ namespace dlib ...@@ -115,10 +115,7 @@ namespace dlib
// use the linearly_independent_subset_finder object to select the centers. So here // use the linearly_independent_subset_finder object to select the centers. So here
// we show it all the data samples so it can find the best centers. // we show it all the data samples so it can find the best centers.
linearly_independent_subset_finder<kernel_type> lisf(kernel, num_centers); linearly_independent_subset_finder<kernel_type> lisf(kernel, num_centers);
for (long i = 0; i < x.size(); ++i) fill_lisf(lisf, x);
{
lisf.add(x(i));
}
const long num_centers = lisf.dictionary_size(); const long num_centers = lisf.dictionary_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