Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'Nb' is not defined #36

Open
Tsokneelsbd opened this issue Nov 17, 2021 · 6 comments
Open

NameError: name 'Nb' is not defined #36

Tsokneelsbd opened this issue Nov 17, 2021 · 6 comments

Comments

@Tsokneelsbd
Copy link

While using Mode="IC" I am having error saying "NameError: name 'Nb' is not defined". I would like to request your help on solving this issue. Thank you !

@CameronDevine
Copy link
Contributor

I expect the io_rls.py file is missing the line Nb = np.sum(nb[:]); however, I could be completely wrong about this.

@RBdC
Copy link
Collaborator

RBdC commented Nov 18, 2021

Dear Tsokneelsbd,
thank you for using our SIPPY.

Your issue sounds strange..
Where the error arises? in a core code or in a example file?
Then, it is systematic when running any example file?
Can you share an example file so that we can investigate the issue ..

More, a general quote from the Guide:
By using an Information Criterion (IC), the user does not need to the define the exact model
orders, but he/she has to assign a range of orders and let the IC find the best combination.
Note that, when an input-output model structure is selected, the information criteria are
implemented only for SISO systems.
This means that for MIMO systems, when using I/O models (ARX,ARMAX, etc.) IC mode is not available.

@CameronDevine: the io_rsl.py is actually missing the line Nb = np.sum(nb[:]),
but this not seems the reason for the problem...

Best regards
SIPPY Team

@Tsokneelsbd
Copy link
Author

Screenshot 2021-11-27 121044

@Tsokneelsbd
Copy link
Author

Screenshot 2021-11-27 121044

@Tsokneelsbd
Copy link
Author

I am also getting TypeError: 'int' object is not subscriptable
Screenshot 2021-11-27 1227472

@CPCLAB-UNIPI
Copy link
Owner

CPCLAB-UNIPI commented Apr 22, 2022

Dear @Tsokneelsbd,
sorry for the big delay in this response.
We just fixed a silly typo in the io_rls.py file (nb instead of Nb). This should solve your problem.

Let us know if now it is running errors free.

Best Regards,

SIPPY team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants