From bc1d46b1636e7d18795ff38e7676bc569e4de12f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Stor=C3=B8=20Nyfl=C3=B8tt?= Date: Wed, 15 Mar 2017 10:16:57 +0100 Subject: [PATCH] Optimized some TMVA tuts --- tutorials/tmva/TMVAClassification.C | 6 +++--- tutorials/tmva/TMVAMultipleBackgroundExample.C | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorials/tmva/TMVAClassification.C b/tutorials/tmva/TMVAClassification.C index 1602cab1a5fb3..620ecd843c518 100644 --- a/tutorials/tmva/TMVAClassification.C +++ b/tutorials/tmva/TMVAClassification.C @@ -407,7 +407,7 @@ int TMVAClassification( TString myMethodList = "" ) if (Use["FDA_GA"]) // can also use Simulated Annealing (SA) algorithm (see Cuts_SA options]) factory->BookMethod( dataloader, TMVA::Types::kFDA, "FDA_GA", - "H:!V:Formula=(0)+(1)*x0+(2)*x1+(3)*x2+(4)*x3:ParRanges=(-1,1);(-10,10);(-10,10);(-10,10);(-10,10):FitMethod=GA:PopSize=300:Cycles=3:Steps=20:Trim=True:SaveBestGen=1" ); + "H:!V:Formula=(0)+(1)*x0+(2)*x1+(3)*x2+(4)*x3:ParRanges=(-1,1);(-10,10);(-10,10);(-10,10);(-10,10):FitMethod=GA:PopSize=100:Cycles=2:Steps=5:Trim=True:SaveBestGen=1" ); if (Use["FDA_SA"]) // can also use Simulated Annealing (SA) algorithm (see Cuts_SA options]) factory->BookMethod( dataloader, TMVA::Types::kFDA, "FDA_SA", @@ -433,7 +433,7 @@ int TMVAClassification( TString myMethodList = "" ) factory->BookMethod( dataloader, TMVA::Types::kMLP, "MLPBFGS", "H:!V:NeuronType=tanh:VarTransform=N:NCycles=600:HiddenLayers=N+5:TestRate=5:TrainingMethod=BFGS:!UseRegulator" ); if (Use["MLPBNN"]) - factory->BookMethod( dataloader, TMVA::Types::kMLP, "MLPBNN", "H:!V:NeuronType=tanh:VarTransform=N:NCycles=600:HiddenLayers=N+5:TestRate=5:TrainingMethod=BFGS:UseRegulator" ); // BFGS training with bayesian regulators + factory->BookMethod( dataloader, TMVA::Types::kMLP, "MLPBNN", "H:!V:NeuronType=tanh:VarTransform=N:NCycles=60:HiddenLayers=N+5:TestRate=5:TrainingMethod=BFGS:UseRegulator" ); // BFGS training with bayesian regulators // Multi-architecture DNN implementation. @@ -482,7 +482,7 @@ int TMVAClassification( TString myMethodList = "" ) // CF(Clermont-Ferrand)ANN if (Use["CFMlpANN"]) - factory->BookMethod( dataloader, TMVA::Types::kCFMlpANN, "CFMlpANN", "!H:!V:NCycles=2000:HiddenLayers=N+1,N" ); // n_cycles:#nodes:#nodes:... + factory->BookMethod( dataloader, TMVA::Types::kCFMlpANN, "CFMlpANN", "!H:!V:NCycles=200:HiddenLayers=N+1,N" ); // n_cycles:#nodes:#nodes:... // Tmlp(Root)ANN if (Use["TMlpANN"]) diff --git a/tutorials/tmva/TMVAMultipleBackgroundExample.C b/tutorials/tmva/TMVAMultipleBackgroundExample.C index 66db511fc6a4e..5ec8b29dae111 100644 --- a/tutorials/tmva/TMVAMultipleBackgroundExample.C +++ b/tutorials/tmva/TMVAMultipleBackgroundExample.C @@ -478,7 +478,7 @@ void TMVAMultipleBackgroundExample() TString createDataMacro = gROOT->GetTutorialDir() + "/tmva/createData.C"; gROOT->ProcessLine(TString::Format(".L %s",createDataMacro.Data())); - gROOT->ProcessLine("create_MultipleBackground(2000)"); + gROOT->ProcessLine("create_MultipleBackground(200)"); cout << endl;