Skip to content

GNN & MLP linking plug-in - #26

Open
jejarosl wants to merge 3 commits into
felicepantaleo:ticlv5_14_0_0_pre0from
jejarosl:ticlv5_14_0_0_pre0
Open

jejarosl wants to merge 3 commits into
felicepantaleo:ticlv5_14_0_0_pre0from
jejarosl:ticlv5_14_0_0_pre0

Conversation

@jejarosl

@jejarosl jejarosl commented Feb 9, 2024

Copy link
Copy Markdown

Added plug-in for GNN and MLP networks for trackster linking.

Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.h
Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.cc
Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.cc
Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.cc
Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.cc
Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.cc
Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.cc
Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.cc
Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.cc
Comment thread RecoHGCal/TICL/plugins/TracksterLinkingbyGNN.cc
Comment thread RecoHGCal/TICL/interface/GNNUtils.h
Comment thread RecoHGCal/TICL/interface/GNNUtils.h
Comment thread RecoHGCal/TICL/interface/GNNUtils.h
for (const auto &point_i : lcs_i){
for (const auto &point_j : lcs_j){
// Calculate Euclidean distance between point_i and point_j and push it to dists
dists.push_back(std::sqrt(std::pow((point_i[0] - point_j[0]), 2) + std::pow((point_i[1] - point_j[1]), 2) + std::pow((point_i[2] - point_j[2]), 2)));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if we can avoid the std::sqrt and work with everything squared would be better

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I fixed the function to output the second power of the distance, then max and min squared distances are selected. But the network is currently trained with the distance, so I still have to use sqrt for min and max distance calculation...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ok, let's remember this then :)

felicepantaleo pushed a commit that referenced this pull request Apr 21, 2026
* Address review comments for L1 MET
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