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

IndexError when running main.py without data.mat #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hyabe
Copy link

@hyabe hyabe commented May 10, 2018

This PR fixes IndexError on running main.py without data.mat.

When I ran main.py without data.mat, it crashed as follows:

Traceback (most recent call last):
  File "main.py", line 108, in <module>
    refined_b[0, i] = w_tf[-1]
IndexError: too many indices for array

This PR fixes the problem by converting biases to 1-D array after scipy.io.loadmat().

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

Successfully merging this pull request may close these issues.

1 participant