Skip to content

Commit

Permalink
MAINT: class rename
Browse files Browse the repository at this point in the history
Signed-off-by: naweedkhan <naweed.khan@ibm.com>
  • Loading branch information
NaweedAghmad committed Nov 30, 2023
1 parent 77b599d commit aec7b50
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions lnn/symbolic/logic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from .connective_neuron import _ConnectiveNeuron
from .formula import Formula
from .leaf_formula import _LeafFormula, Predicate, Predicates, Proposition, Propositions
from .n_ary_neuron import And, Or, XOr
from .n_ary_operator import Congruent
from .n_ary_neuron import And, Or, Xor
from .n_ary_operator import Equal
from .neural_activation import NeuralActivation
from .unary_operator import _Quantifier, Exists, Forall, Not
from .variable import Variable, Variables
Expand All @@ -22,7 +22,7 @@
"_Quantifier": _Quantifier,
"_LeafFormula": _LeafFormula,
"And": And,
"Congruent": Congruent,
"Equal": Equal,
"Iff": Iff,
"Exists": Exists,
"Forall": Forall,
Expand All @@ -31,23 +31,23 @@
"Or": Or,
"Predicate": Predicate,
"Proposition": Proposition,
"XOr": XOr,
"Xor": Xor,
}

_connective_neuron.subclasses = {
"And": And,
"Iff": Iff,
"Implies": Implies,
"Or": Or,
"XOr": XOr,
"Xor": Xor,
}

__all__ = [
"_ConnectiveFormula",
"_ConnectiveNeuron",
"_Quantifier",
"And",
"Congruent",
"Equal",
"Iff",
"Exists",
"Forall",
Expand All @@ -62,5 +62,5 @@
"Predicates",
"Variable",
"Variables",
"XOr",
"Xor",
]
4 changes: 2 additions & 2 deletions lnn/symbolic/logic/n_ary_neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ class Xor(_NAryNeuron):
```python
# Propositional
A, B, C = Propositions('A', 'B', 'C')
XOr(A, B, C)
Xor(A, B, C)
```
```python
# First-order logic
x, y = Variables('x', 'y')
A, C = Predicates('A', 'C')
B = Predicate('B', arity=2)
XOr(A(x), B(x, y), C(y)))
Xor(A(x), B(x, y), C(y)))
```
"""
Expand Down
2 changes: 1 addition & 1 deletion lnn/symbolic/logic/n_ary_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, *formula, **kwds):
super().__init__(*formula, arity=len(formula), **kwds)


class Congruent(_NAryOperator):
class Equal(_NAryOperator):
r"""Symbolic Congruency
This is used to define nodes that are symbolically equivalent to one another
Expand Down

0 comments on commit aec7b50

Please sign in to comment.