diff --git a/src/ailed/core.py b/src/ailed/core.py index b734389..75f46c3 100644 --- a/src/ailed/core.py +++ b/src/ailed/core.py @@ -16,9 +16,17 @@ 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 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. + # omega scales the sine pre-activation and sets the kernel bandwidth. This was + # documented as "a calibration knob that wants tuning against the domain's length + # scale"; experiments/results/omega.md measured that and it is FALSE over the range + # tested -- the best omega sits at 2-4 for a domain bandwidth varying 4.7x, and 8 is + # an optimisation cliff for every domain tried. What the domain changes is the + # penalty for being under-banded, not where the optimum is. + # The default of 10.0 is OUTSIDE that plateau and every chess result was produced at + # it. It is left alone rather than silently changed: those results are comparisons at + # a fixed omega and stay fair, and one synthetic teacher family is not enough to move + # a library default. Pass omega explicitly, and measure it for a new domain. + # l1 deliberately keeps PyTorch's default init. self.omega = omega def forward(self, r: Tensor, edge_onehot: Tensor, context: Tensor) -> Tensor: