Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix inf loop in test on arm
There was an infinite loop on the arm platform when running
TMVAMulticlass.root. When compiling with the -ffast-math flag,
sometimes a nan would be generated.
  • Loading branch information
ashlaban committed Mar 20, 2017
commit 5619a8ccbfb803ad881fdbb163f5e1b14307f1fd
2 changes: 1 addition & 1 deletion tmva/tmva/src/ResultsMulticlass.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Double_t TMVA::ResultsMulticlass::EstimatorFunction( std::vector<Double_t> & cut
Float_t effTimesPur = eff*pur;

Float_t toMinimize = std::numeric_limits<float>::max();
if( effTimesPur > 0 )
if (effTimesPur > std::numeric_limits<float>::min())
toMinimize = 1./(effTimesPur); // we want to minimize 1/efficiency*purity

fAchievableEff.at(fClassToOptimize) = eff;
Expand Down