Add a StereoDispCombiner - #2731
Conversation
47d2798 to
8902c7f
Compare
kosack
left a comment
There was a problem hiding this comment.
We have a predicted disp.sign_score that is not used in this method, which seems odd. Is that the reason why the pair-wise average including both disps is made rather than a simple weighted average over predictions? Is there citation for the MARS method, by the way? i'd be interested to see if simpler methods were tested.
This |
It's also easy to argue why: especially at low energies, disp sign is not really reconstructible (random guess, sign_score ~ 0.5). But with multiple telescopes, it's quite easy to see which option is actually correct and make the weighted average over the correct locations. There are still a couple of different options for stereo disp, but most of them do not actually use the sign prediction, that is only used for mono as far as I know. The MAGIC MARS method is explained in a short paragraph here:
|
add0d93 to
5fb1c20
Compare
Not really, this is more of a book-keeping for doing lower-level performance plots. It could be used for a quality query or similar, but AFAIK, this was not yet done anywhere and would be a completely new development that needs to be tested. Would be a nice study though. |
During the quantitative analysis of the |
d9230cc to
6628171
Compare
|
combiner_theta2_reco_lon_lat_zen_20_az_0_ac_full_array.pdf The |
0779598 to
711e49e
Compare
|
|
I'm not quite sure I understand the logic of weighting distances, which should be related to the absolute value of disp, with the sign score. Especially since we are trying out all combinations, effectively ignoring the predicted sign. |
|
Sorry for the above message, I forgot about the comment of near-parallel high energy showers. So penalizing choosing what the classifier thinks is a clearly wrong sign is good I think. I'm not sure though that weighting the distance achieves this goal. For your comparison plots, it might help to include large percentiles to see differences. It expect this to mostly affect rare events, so the effect is probably only seen in something like a 90 % or 95 % containment, not 68 %. |
|
Could you also maybe expand a bit what datasets you are using here and how they have been processed? |
- now (nearly) possible to use ED configuration
- also change some docstrings
- Fix some bugs
- property trait of StereoDispCombiner should not be configurable
- reduce .copy() when unecessary - remove indirection in __call__
- 5-10% faster
ebb6ace to
2ce1c49
Compare
|








This is basically the StereoCombiner already implemented here
in
magic-cta-pipe.It combines the mono DISP reconstruction by
Update:
The
StereoDispCombinerhas essentially been generalized so that it can be configured to reproduce both themagic-cta-pipeand theEventDisplaybehavior.For each telescope combination of size
n_tel_combinations, all possible DISP sign assignments are then evaluated, and the sign combination that minimizes the Sum of Squared Errors (SSE) between the participating telescopes is selected. The resulting per-combination FoV positions are then combined using the selected telescope weights, and a weighted mean FoV direction is computed for each subarray event.If a subarray event has an valid telescope multiplicity smaller than
n_tel_combinations(after applyingn_best_telsand any angular-difference cuts), but at least two telescopes remain, the reconstruction is performed using all available telescopes of that subarray event. In this case, only one combination is formed, with a size equal to the event multiplicity, and the optimal DISP sign assignment is determined accordingly. Single-telescope events are handled separately using just the mono reconstruction.Some hints for reviewing are here