Made the probabilistic trainer adapter not hold onto the input trainer

by reference since this causes problems if the probabilistic adapter
is saved for later use.  Now it will simply hold the trainer by value.
This commit is contained in:
Davis King 2013-11-17 19:01:27 -05:00
parent 83217d764a
commit 525f2a529b
1 changed files with 1 additions and 1 deletions

View File

@ -818,7 +818,7 @@ namespace dlib
{ {
typedef probabilistic_function<typename trainer_type::trained_function_type> trained_function_type; typedef probabilistic_function<typename trainer_type::trained_function_type> trained_function_type;
const trainer_type& trainer; const trainer_type trainer;
const long folds; const long folds;
trainer_adapter_probabilistic ( trainer_adapter_probabilistic (