We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4384ff5 commit 03dec8aCopy full SHA for 03dec8a
1 file changed
src/graphnet/models/data_representation/data_representation.py
@@ -75,6 +75,8 @@ def __init__(
75
) # noqa: E501 # type: ignore
76
self._input_feature_names = input_feature_names
77
78
+ self.nb_inputs = len(self._input_feature_names)
79
+
80
# Set data type
81
self.to(dtype)
82
@@ -96,11 +98,6 @@ def __init__(
96
98
else:
97
99
self.rng = default_rng()
100
- @property
- def nb_inputs(self) -> int:
101
- """Return the number of input features."""
102
- return len(self._input_feature_names)
103
-
104
@property
105
def nb_outputs(self) -> int:
106
"""Return the number of output features."""
0 commit comments