# Option NCuts=-1 for optimal cuts in BDT training not implemented

**URL:** <https://root-forum.cern.ch/t/option-ncuts-1-for-optimal-cuts-in-bdt-training-not-implemented/27230>\
**Category:** TMVA\
**Created:** [December 9, 2017, 1:28pm UTC](https://root-forum.cern.ch/t/option-ncuts-1-for-optimal-cuts-in-bdt-training-not-implemented/27230 "2017-12-09T13:28:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![willemv](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@willemv](https://root-forum.cern.ch/u/willemv)\
**Post date:** [December 9, 2017, 1:28pm UTC](https://root-forum.cern.ch/t/option-ncuts-1-for-optimal-cuts-in-bdt-training-not-implemented/27230/1 "2017-12-09T13:28:27Z")

</div>

Dear experts,

I am using ROOT version 6.10/09 and when trying to train a BDT using the option “nCuts=-1” I am getting the following warning messages:

> WARNING : You had chosen the training mode using optimal cuts, not  
> WARNING : based on a grid of 200 by setting the option NCuts \< 0  
> WARNING : as this doesn’t exist yet, I set it to 200 and use the grid

Is it true that this method is not implemented yet in the ROOT version I am using, or is something else likely going wrong? Thanks for the help.

regards,

Willem

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [December 10, 2017, 11:49pm UTC](https://root-forum.cern.ch/t/option-ncuts-1-for-optimal-cuts-in-bdt-training-not-implemented/27230/2 "2017-12-10T23:49:39Z")

</div>

Hi Willem!

The currently NCuts \< 0 (i.e. full cut search) is unavailable for regression _and_ classification with gradient boosting. If you are using classification with another optimisation technique you should find that the parameter behaves as you expect.

As for why this is not supported by gradient boosting (which is what I assume you are using) I cannot say without digging deeper into the issue.

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![willemv](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@willemv](https://root-forum.cern.ch/u/willemv)\
**Post date:** [December 10, 2017, 11:59pm UTC](https://root-forum.cern.ch/t/option-ncuts-1-for-optimal-cuts-in-bdt-training-not-implemented/27230/3 "2017-12-10T23:59:49Z")

</div>

Hi Kim,

Thanks for the quick reply. I am indeed using gradient boosting.

regards,

Willem
