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
Segfault in classification notebook #135
Comments
Code is freshly cloned from bb00cb0 |
Ok, this is solved for me by upgrading scipy and numpy to the latest versions (1.11.2 and 1.26.0, resp.), even though reservoirpy wants scipy<=1.7.3. Consider updating the requirements or adding a warning in the installation section. |
The segfault was triggered by this line btw:
Any ideas of issues I might encounter while using a newer scipy? |
Hi @benureau, thanks for your interest in reservoirpy and for finding this issue! Usually this kind of error, related to the regression when training the readout, could come from a bad conditioning of the matrix to be pseudo-inversed or if the size of the training data (nr of timesteps / number of reservoir dimensions) is too big. |
Hello @benureau , thank you for your extensive report. Even if I wasn't able to reproduce on my machine, which makes it difficult to debug, it seems that this is an issue with older scipy versions (<1.9.0), specifically on the ARM architecture. As you mentionned, updating your scipy version should fix this. Feel free to reopen if your problem persists on recent scipy versions. |
If I run the code below, copied from the classification notebook in
tutorial/
:I get this output:
Sometimes "Bus error: 10" is replaced by a "Segmentation fault: 11".
I am running the code on macOS 13.4 (22F66), Apple Silicon (Arm) with python 3.10.11.
The text was updated successfully, but these errors were encountered: