Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4a6e5b2

Browse files
remove unnecessary elif clause in narmax_tools regressor_method
1 parent 63cb3c3 commit 4a6e5b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎sysidentpy/utils/narmax_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ def regressor_code(
4141

4242
if basis_name == "Polynomial" and model_representation == "neural_network":
4343
return encoding[1:]
44-
elif basis_name == "Polynomial" and model_representation is None:
45-
return encoding
46-
else:
44+
if basis_name == "Polynomial" and model_representation is None:
4745
return encoding
4846

47+
return encoding
48+
4949

5050
def set_weights(
5151
*,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /