# TMVA Cuts ROC curve not monotonically decreasing

**URL:** <https://root-forum.cern.ch/t/tmva-cuts-roc-curve-not-monotonically-decreasing/22445>\
**Category:** TMVA\
**Created:** [January 5, 2017, 1:42pm UTC](https://root-forum.cern.ch/t/tmva-cuts-roc-curve-not-monotonically-decreasing/22445 "2017-01-05T13:42:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaktal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/6a8cbe/32.png) [@Shaktal](https://root-forum.cern.ch/u/Shaktal)\
**Post date:** [January 5, 2017, 1:42pm UTC](https://root-forum.cern.ch/t/tmva-cuts-roc-curve-not-monotonically-decreasing/22445/1 "2017-01-05T13:42:11Z")

</div>

I have been using TMVA for evaluating different MVA techniques on a dataset, and when I plotted the ROC curve for Cuts (found by Simulated Annealing), I found something that I thought was rather odd.

Instead of a monotonically decreasing curve like the other MVA techniques, I found that there were random spikes in the curve, which I could not explain. Does anyone have an explanation of why this is.

Here is the plot of various MVA techniques which demonstrates the oddities of the cuts ROC curve:

[roc-curves.pdf](https://root-forum.cern.ch/uploads/default/original/2X/c/c24cce648615098f289928d6cd4113a739b49ecf.pdf) (16.1 KB)

---

<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:** [March 14, 2017, 11:33pm UTC](https://root-forum.cern.ch/t/tmva-cuts-roc-curve-not-monotonically-decreasing/22445/2 "2017-03-14T23:33:53Z")

</div>

Hi, sorry for the late answer. Did you find out the answer to your question?

How did you generate the ROC curve?

Can you also describe a bit more how the optimal cuts (simulated annealing) works; How is the underlying classifier generated?

These kind of fluctuations can occur when you have a low number of signal events and draw the ROC using cubic interpolation or similar, but it seems that isn’t applicable here. The only other thing I can think of without further details is if the simulated annealing regenerates the underlying classifier for each cut.

---

<div class="post-metadata">

**Author:** ![Shaktal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/6a8cbe/32.png) [@Shaktal](https://root-forum.cern.ch/u/Shaktal)\
**Post date:** [March 16, 2017, 12:32pm UTC](https://root-forum.cern.ch/t/tmva-cuts-roc-curve-not-monotonically-decreasing/22445/3 "2017-03-16T12:32:21Z")

</div>

Hi,

No, I never found the answer to my question. It is a combination of the ROC curves that are generated by TMVA when using the TMVA::Factory class.

I think that the simulated annealing would regenerate the classifier for each cut within TMVA, but I’m not sure; that would explain it somewhat though!

---

<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:** [March 16, 2017, 12:47pm UTC](https://root-forum.cern.ch/t/tmva-cuts-roc-curve-not-monotonically-decreasing/22445/4 "2017-03-16T12:47:18Z")

</div>

Would it be possible for you to share a minimally working example for the simulated annealing case? Or at least a schematic description of it. I can then have a look when I have some free time.
