From 581e56b6c0a3f26d2c9003cfa521638679b5738e Mon Sep 17 00:00:00 2001 From: John Wesley Hostetter Date: Wed, 21 Aug 2024 12:17:34 -0400 Subject: [PATCH] Improve Pylint score --- src/fuzzy/relations/continuous/n_ary.py | 2 ++ src/fuzzy/relations/continuous/t_norm.py | 1 + 2 files changed, 3 insertions(+) diff --git a/src/fuzzy/relations/continuous/n_ary.py b/src/fuzzy/relations/continuous/n_ary.py index a18ac15..e49e8d0 100644 --- a/src/fuzzy/relations/continuous/n_ary.py +++ b/src/fuzzy/relations/continuous/n_ary.py @@ -22,6 +22,8 @@ class NAryRelation(torch.nn.Module): truth value. """ + # pylint: disable=too-many-instance-attributes + def __init__( self, *indices: Union[Tuple[int, int], List[Tuple[int, int]]], diff --git a/src/fuzzy/relations/continuous/t_norm.py b/src/fuzzy/relations/continuous/t_norm.py index 774bc5e..6b45d26 100644 --- a/src/fuzzy/relations/continuous/t_norm.py +++ b/src/fuzzy/relations/continuous/t_norm.py @@ -84,6 +84,7 @@ def forward(self, membership: Membership) -> Membership: The applicability of the fuzzy compounds (e.g., fuzzy logic rules). """ # intermediate_values = self.calc_intermediate_input(antecedents_memberships) + # pylint: disable=fixme # TODO: these dimensions are possibly not correct, need to be fixed/tested firing_strengths = membership.degrees.sum(dim=1) max_values, _ = firing_strengths.max(dim=-1, keepdim=True)