Skip to content

CNN PR [2/4]: Add CNN base class and IceCubeDNN model - #894

Merged
sevmag merged 4 commits into
graphnet-team:mainfrom
sevmag:features/cnn-icecube-dnn
Sep 11, 2026
Merged

sevmag merged 4 commits into
graphnet-team:mainfrom
sevmag:features/cnn-icecube-dnn

Conversation

@sevmag

@sevmag sevmag commented May 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Third in the series of PRs being carved out of #813 (see the split tracking comment). Introduces graphnet.models.cnn, the convolutional-network counterpart to the existing GNN backbones, intended to consume the image data representation added in #892.

What's new

  • CNN — abstract base class (analogue of GNN) defining the interface for convolutional backbones operating on image-shaped Data objects.
  • IceCubeDNN — configurable CNN backbone following the IceCube DNN reconstruction architecture.
  • cnn/__init__.py exports CNN and IceCubeDNN.

Dependencies / ordering

Test plan

  • Pre-commit clean (black, flake8, docformatter, pydocstyle, mypy, EOL/whitespace)
  • from graphnet.models.cnn import CNN, IceCubeDNN succeeds
  • CI green

Split from #813.

🤖 Generated with Claude Code

@sevmag sevmag mentioned this pull request May 27, 2026
@sevmag
sevmag marked this pull request as draft May 27, 2026 01:07
@sevmag sevmag changed the title Add CNN base class and IceCubeDNN model CNN PR [2/4]: Add CNN base class and IceCubeDNN model May 27, 2026

@Aske-Rosted Aske-Rosted left a comment

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.

So far we have been putting sub-components in src/graphnet/models/components/layers.py

@Aske-Rosted
Aske-Rosted marked this pull request as ready for review September 10, 2026 00:51
@sevmag
sevmag force-pushed the features/cnn-icecube-dnn branch 2 times, most recently from abe7680 to 45503b4 Compare September 10, 2026 21:07

@Aske-Rosted Aske-Rosted left a comment

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.

Looks good.

sevmag and others added 4 commits September 11, 2026 11:25
Introduce `graphnet.models.cnn`, the convolutional-network counterpart
to the existing GNN backbones, intended to consume the image data
representation added in the image-representation PR.

- `CNN` — abstract base class (analogue of `GNN`) defining the
  interface for convolutional backbones operating on image-shaped
  `Data` objects.
- `IceCubeDNN` — configurable CNN backbone following the IceCube DNN
  reconstruction architecture.

`cnn/__init__.py` exports `CNN` and `IceCubeDNN`; the `LCSC` model
lands in a follow-up PR.

Split from graphnet-team#813.
Start a components module for convolutional building blocks so they
can be shared across CNN backbones instead of living inside a single
model file.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013B53eM2fgkivj8xxVnhjQ9
icecube_dnn.py now contains only the IceCubeDNN model itself; all
reusable convolution blocks live in components.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013B53eM2fgkivj8xxVnhjQ9
@sevmag
sevmag force-pushed the features/cnn-icecube-dnn branch from 45503b4 to 380461a Compare September 11, 2026 15:27
@sevmag
sevmag merged commit b80b86f into graphnet-team:main Sep 11, 2026
12 checks passed
@sevmag
sevmag deleted the features/cnn-icecube-dnn branch November 9, 2026 09:16
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