localminimum / localminimum/R-net

cannot reshape array of size 26920800 into shape (91605,300)

Open
#44 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
319
Forks
121
PR merge metrics
No merged PRs in 30d

Description

glove = np.reshape(glove,(Params.vocab_size,Params.emb_size))
File "/home/kamal/.local/share/virtualenvs/R-net-master-kpkmZweY/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 292, in reshape
return _wrapfunc(a, 'reshape', newshape, order=order)
File "/home/kamal/.local/share/virtualenvs/R-net-master-kpkmZweY/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
return getattr(obj, method)(*args, **kwds)
ValueError: cannot reshape array of size 26920800 into shape (91605,300)

Im getting this...please help
thank you in advance

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the reshape call shown in the issue and inspect how glove, Params.vocab_size, and Params.emb_size are populated. Compare the loaded array size with the requested shape, then verify that the embedding data and configured dimensions agree so the reshape completes without ValueError.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.