From 02c08be5e94df27771dc6a83c2d9d401f686a203 Mon Sep 17 00:00:00 2001 From: "fuder.eth" <139509124+vtjl10@users.noreply.github.com> Date: Sat, 14 Jun 2025 14:07:21 +0200 Subject: [PATCH] Update test_net.py --- skorch/tests/test_net.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skorch/tests/test_net.py b/skorch/tests/test_net.py index 1518249c..325b40bd 100644 --- a/skorch/tests/test_net.py +++ b/skorch/tests/test_net.py @@ -3475,7 +3475,7 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.foo_ = module_cls() - msg = ("Trying to set torch compoment 'foo_' outside of an initialize method. " + msg = ("Trying to set torch component 'foo_' outside of an initialize method. " "Consider defining it inside 'initialize_module'") with pytest.raises(SkorchAttributeError, match=msg): MyNet(module_cls) @@ -3492,7 +3492,7 @@ def initialize(self): self.opti = torch.optim.Adam(self.module_.parameters()) return self - msg = ("Trying to set torch compoment 'opti' outside of an initialize method. " + msg = ("Trying to set torch component 'opti' outside of an initialize method. " "Consider defining it inside 'initialize_optimizer'") with pytest.raises(SkorchAttributeError, match=msg): MyNet(module_cls).initialize()