From dbc5d18a778e767736eade5d6eed19e18dc21a97 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Tue, 1 Sep 2026 23:49:22 -0500 Subject: [PATCH] fix(core): correct omega comment to match actual init behavior --- src/ailed/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ailed/core.py b/src/ailed/core.py index 96cc496..86c29f1 100644 --- a/src/ailed/core.py +++ b/src/ailed/core.py @@ -16,8 +16,9 @@ class AffectiveCPPN(nn.Module): super().__init__() self.l1 = nn.Linear(coord_dim + n_edge_types + context_dim, hidden) self.l2 = nn.Linear(hidden, out_dim) - # omega is the calibration knob for kernel bandwidth; default - # Linear init cannot reach the ~1/sigma frequencies a local kernel needs. + # omega scales the sine pre-activation and sets the kernel bandwidth; it is + # a calibration knob that wants tuning against the domain's length scale + # (the particles domain's sigma). l1 deliberately keeps PyTorch's default init. self.omega = omega def forward(self, r: Tensor, edge_onehot: Tensor, context: Tensor) -> Tensor: