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

problem #1

Open
sofiapillai87 opened this issue Aug 1, 2018 · 1 comment
Open

problem #1

sofiapillai87 opened this issue Aug 1, 2018 · 1 comment

Comments

@sofiapillai87
Copy link

Traceback (most recent call last):
  File "ml.py", line 49, in <module>
    cov2 = cov2 + (features[x] - mu2).transpose()*(features[x] - mu2)
  File "/usr/lib/python2.7/dist-packages/numpy/matrixlib/defmatrix.py", line 318, in __getitem__
    out = N.ndarray.__getitem__(self, index)
IndexError: index 301 is out of bounds for axis 0 with size 301

kindly resolve the problem

@agoel00
Copy link

agoel00 commented Jan 9, 2019

The indexing starts at 0. Since the size is 301 the index range is [0, 1, 2, ...., 300]

I think that's why the error occurs.

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

2 participants