Skip to content

Commit

Permalink
removed unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzaniEdoardo committed Oct 10, 2024
1 parent c664d98 commit b71a36b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/nemos/basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,20 +1104,6 @@ def to_transformer(self) -> TransformerBasis:
"""
return TransformerBasis(copy.deepcopy(self))

def _get_num_features(self) -> int:
"""Recursively find the number features the basis generates."""
if isinstance(self, AdditiveBasis):
n_coeff = (
self._basis1._get_num_features() + self._basis2._get_num_features()
)
elif isinstance(self, MultiplicativeBasis):
n_coeff = (
self._basis1._get_num_features() * self._basis2._get_num_features()
)
else:
n_coeff = self.n_basis_funcs * self._n_basis_input[0]
return n_coeff

def _get_feature_slicing(
self,
n_inputs: Optional[tuple] = None,
Expand Down

0 comments on commit b71a36b

Please sign in to comment.