Skip to content

Commit

Permalink
Improve Pylint score
Browse files Browse the repository at this point in the history
  • Loading branch information
johnHostetter committed Aug 21, 2024
1 parent 7b4adf3 commit 581e56b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fuzzy/relations/continuous/n_ary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]],
Expand Down
1 change: 1 addition & 0 deletions src/fuzzy/relations/continuous/t_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 581e56b

Please sign in to comment.