Skip to content

fix: explicit NegWeightTreatment=Pray for BoostType=Grad in TMVA angular training#357

Merged
GernotMaier merged 1 commit into
v492-17from
fix-tmva-negweight
May 31, 2026
Merged

fix: explicit NegWeightTreatment=Pray for BoostType=Grad in TMVA angular training#357
GernotMaier merged 1 commit into
v492-17from
fix-tmva-negweight

Conversation

@GernotMaier
Copy link
Copy Markdown
Member

BoostType=Grad does not support InverseBoostNegWeights (TMVA BDT global default), causing a silent replacement with Pray and a mismatch between nominal and effective training configuration. Adds the explicit option to the default string.

…lar training

BoostType=Grad does not support InverseBoostNegWeights (TMVA's global
default for BDT), which caused TMVA to silently replace it with Pray,
making the effective training configuration differ from the nominal one.
Explicitly setting NegWeightTreatment=Pray in the default options string
eliminates the silent substitution and ensures the logged configuration
matches actual training behaviour.

Fixes: #352 (item from mvaAngRes log)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GernotMaier GernotMaier changed the base branch from main to v492-17 May 31, 2026 19:13
@GernotMaier GernotMaier requested a review from Copilot May 31, 2026 19:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the default TMVA angular reconstruction BDT configuration explicit about negative weight handling so the recorded option string matches the behavior used with BoostType=Grad.

Changes:

  • Adds NegWeightTreatment=Pray to the default TMVA options string.
  • Documents why the option is explicit for gradient-boosted BDT training.
  • Adds a bugfix changelog fragment.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/trainTMVAforAngularReconstruction.cpp Updates the default TMVA BDT options and explanatory comment.
docs/changes/353.bugfix.md Adds a changelog entry describing the explicit negative weight treatment fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GernotMaier GernotMaier merged commit e3a370a into v492-17 May 31, 2026
8 checks passed
@GernotMaier GernotMaier deleted the fix-tmva-negweight branch May 31, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants