Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add output when using event weights with DNN
Event weights are not supported by the DNN currently. A patch is
in the works, but for now a message will warn users if they try to
use them with this method.
  • Loading branch information
ashlaban committed Jun 6, 2017
commit 485e044e24bf62e21d4c57aaec1696e3db68d4b0
10 changes: 10 additions & 0 deletions tmva/tmva/src/MethodDNN.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ Bool_t TMVA::MethodDNN::HasAnalysisType(Types::EAnalysisType type,

void TMVA::MethodDNN::Init()
{
// TODO: Remove once weights are considered by the method.
auto & dsi = this->DataInfo();
auto numClasses = dsi.GetNClasses();
for (UInt_t i = 0; i < numClasses; ++i) {
if (dsi.GetWeightExpression(i) != TString("")) {
Log() << kERROR
<< "Currently event weights are not considered properly by this method." << Endl;
Log() << kFATAL << "See above." << Endl;
}
}
}

////////////////////////////////////////////////////////////////////////////////
Expand Down