Skip to content

[RF] Also support Offset("bin") in simul. fits with legacy backend#13890

Merged
guitargeek merged 6 commits into
root-project:masterfrom
guitargeek:offset_bin_fixup
Oct 20, 2023
Merged

[RF] Also support Offset("bin") in simul. fits with legacy backend#13890
guitargeek merged 6 commits into
root-project:masterfrom
guitargeek:offset_bin_fixup

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

Also support the Offset("bin") feature in simultaneous fits with the
legacy evaluation backend (e.g., the old test statistic classes).

In this case, The top-level RooNLLVar actually doesn't do anything
but contains pointers to the NLLs for the individual channels. The
function call to enable the offsetting must be delegated to those.

A unit test that covers this is also implemented.

Note that for the new CPU evaluation backend, this is working already.

A second commit in this PR is fixing a copy-paste error in the functions that define the evaluation backend.

@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

@github-actions

github-actions Bot commented Oct 18, 2023

Copy link
Copy Markdown

Test Results

       12 files         12 suites   2d 9h 7m 48s ⏱️
  2 483 tests   2 480 ✔️ 0 💤 3
28 680 runs  28 677 ✔️ 0 💤 3

For more details on these failures, see this check.

Results for commit 6601ba4.

♻️ This comment has been updated with latest results.

It should return `Value::Cuda` of course.
Also support the `Offset("bin")` feature in simultaneous fits with the
legacy evaluation backend (e.g., the old test statistic classes).

In this case, The top-level `RooNLLVar` actually doesn't do anything
but contains pointers to the NLLs for the individual channels. The
function call to enable the offsetting must be delegated to those.

A unit test that covers this is also implemented.

Note that for the new CPU evaluation backend, this is working already.
@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

This is important for full HistFactory model support.
@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

@lmoneta lmoneta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

This is a very useful developer tool, because one can see what the
coverage of RooFit is if the legacy evaluation backend is not present,
without having to worry that is is still used in some code path.
It was not meaningful to have a clone on the `stressRooFit` tests suite
just for a single test that compares pdf values, and it didn't even use
the reference file mechanism from `RooUnitTest`.

Since future unit tests are not added to the `stress` suites anymore but
added as gtests, we might as well also migrate the single test that was
formerly `stressHistFactory`.
@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

@phsft-bot

Copy link
Copy Markdown

Build failed on windows10/default.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

Errors:

  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(270,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(273,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(275,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(277,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(280,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(282,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(284,25): error C2679: binary '=': no operator found which takes a right-hand operand of type 'initializer list' (or there is no acceptable conversion) [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(396,100): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ROOT::VecOps::RVec<CustomStruct>' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(401,94): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-20T19:51:21.091Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(401,27): error C2672: 'ROOT::Detail::VecOps::RVecImpl<T>::emplace_back': no matching overloaded function found [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]

And 12 more

@guitargeek
guitargeek merged commit bc8a9b4 into root-project:master Oct 20, 2023
@guitargeek
guitargeek deleted the offset_bin_fixup branch October 20, 2023 20:40
@phsft-bot

Copy link
Copy Markdown

Build failed on mac12arm/cxx20.
Running on macphsft26.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2023-10-20T21:08:17.608Z] CMake Error at /Users/sftnight/build/workspace/root-pullrequests-build/rootspi/jenkins/root-build.cmake:1126 (message):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants