12 using namespace shark;
22 size_t numberOfHidden = 32;
41 unsigned int numIterations = 1000;
42 unsigned int numTrials = 10;
43 double meanResult = 0;
44 for(
unsigned int trial = 0; trial != numTrials; ++trial) {
49 for(
unsigned int iteration = 0; iteration != numIterations; ++iteration) {
54 std::cout<<trial<<
" "<<likelihood<<std::endl;
55 meanResult +=likelihood;
57 meanResult /= numTrials;
60 cout <<
"RESULTS: " << std::endl;
61 cout <<
"======== " << std::endl;
62 cout <<
"mean negative log likelihood: " << meanResult << std::endl;