Closed rfl-urbaniak closed 7 months ago
This is sufficient for tests/observational/test_handlers.py
to pass, but tests/dynamical/test_handler_composition.py
fails.
scale = scale * functools.reduce(
operator.mul, msg["fn"].event_shape, 1.0
)
still, same failure.
TorchKernel
as a torch.nn.Module
, same failure.@SamWitty let's chat about this at some point.
This is a follow-up to PR #500 .
The strategy:
Given a constraint and a scale/alpha passed as arguments to
AutoSoftConditioning
define_soft_eq
that uses these values, and pass it on toKernelSoftConditionReparam
, with proper constraint diagnosis preceding this call.Eliminate
TorchKernel
,SoftEqKernel
andRBFKernel
completely.Simplify
AutoSoftConditioning
accordingly.Remark. I'm not sure if:
is still needed, commented out for now.
tests/observational/test_handlers.py
accordingly, to avoid using these kernels.