Apply this expert onto a dataset.
334 {
335
336 std::vector<fann_type> input(test_data.getNumberOfFeatures());
337 std::vector<float> probabilities(test_data.getNumberOfEvents());
338 for (unsigned int iEvent = 0; iEvent < test_data.getNumberOfEvents(); ++iEvent) {
339 test_data.loadEvent(iEvent);
340 for (unsigned int iFeature = 0; iFeature < test_data.getNumberOfFeatures(); ++iFeature) {
341 input[iFeature] = test_data.m_input[iFeature];
342 }
343 if (m_specific_options.m_scale_features) fann_scale_input(m_ann, input.data());
344 probabilities[iEvent] = fann_run(m_ann, input.data())[0];
345 }
346 if (m_specific_options.m_scale_target) fann_descale_output(m_ann, probabilities.data());
347 return probabilities;
348 }