From 68cdebc4cdccafca2452de5382acc7d77b372b13 Mon Sep 17 00:00:00 2001 From: moneta <moneta@titanx.dyndns.cern.ch> Date: Wed, 22 Aug 2018 15:09:15 +0200 Subject: [PATCH] remove calculation of correlation matrix for large number of variables --- tmva/tmva/src/DataSetFactory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmva/tmva/src/DataSetFactory.cxx b/tmva/tmva/src/DataSetFactory.cxx index 6ac52a697fc..c18f1df4b63 100644 --- a/tmva/tmva/src/DataSetFactory.cxx +++ b/tmva/tmva/src/DataSetFactory.cxx @@ -128,7 +128,7 @@ TMVA::DataSet* TMVA::DataSetFactory::CreateDataSet( TMVA::DataSetInfo& dsi, // build the first dataset from the data input DataSet * ds = BuildInitialDataSet( dsi, dataInput ); - if (ds->GetNEvents() > 1) { + if (ds->GetNEvents() > 1 && dsi.GetNVariables() < 10) { CalcMinMax(ds,dsi); // from the the final dataset build the correlation matrix -- GitLab