Skip to content

Commit

Permalink
fixed weak feature name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
znicolaou committed Jun 7, 2022
1 parent d0517b7 commit cbe47de
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pysindy/feature_library/weak_pde_library.py
Expand Up @@ -723,13 +723,13 @@ def derivative_string(multiindex):
# Include mixed non-derivative + integral terms
if self.include_interaction:
for k in range(self.num_derivatives):
for i, f in enumerate(self.functions):
for c in self._combinations(
n_features,
f.__code__.co_argcount,
self.interaction_only,
):
for jj in range(n_features):
for jj in range(n_features):
for i, f in enumerate(self.functions):
for c in self._combinations(
n_features,
f.__code__.co_argcount,
self.interaction_only,
):
feature_names.append(
self.function_names[i](
*[input_features[j] for j in c]
Expand Down

0 comments on commit cbe47de

Please sign in to comment.