# TMVA regression warning

**URL:** <https://root-forum.cern.ch/t/tmva-regression-warning/22211>\
**Category:** TMVA\
**Created:** [November 15, 2016, 4:32pm UTC](https://root-forum.cern.ch/t/tmva-regression-warning/22211 "2016-11-15T16:32:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![binghuan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/b5a626/32.png) [@binghuan](https://root-forum.cern.ch/u/binghuan)\
**Post date:** [November 15, 2016, 4:32pm UTC](https://root-forum.cern.ch/t/tmva-regression-warning/22211/1 "2016-11-15T16:32:04Z")

</div>

Dear expert,

I’m using TMVA multi-regression, I got the following warning:

— MLP : ANN too complicated: #events=991 #synapses=1164

I find very little instruction about how to use regression, so I set the parameters to the ones used in tmva regression example:  
factory-\>BookMethod( TMVA::Types::kMLP, “MLP”, “!H:!V:VarTransform=Norm:NeuronType=tanh:NCycles=2000:HiddenLayers=N+20:TestRate=6:TrainingMethod=BFGS:Sampling=0.3:SamplingEpoch=0.8:ConvergenceImprove=1e-6:ConvergenceTests=15:!UseRegulator” );

Could you please kindly let me know what does the warning mean and how to solve this problem?

Thanks,  
Binghuan

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [November 22, 2016, 7:54am UTC](https://root-forum.cern.ch/t/tmva-regression-warning/22211/2 "2016-11-22T07:54:28Z")

</div>

Hi,

I think the warning is caused by the fact you are using a too complex NN architectures (too many nodes) compared to the small number of events you are having for training.  
Either increase the number of training events, or simplify significantly the NN.

Best Regards

Lorenzo
