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

Unable to execute - TypeError: asscalar() takes 1 positional argument but 2 were given on Line 154 #1

Open
sathappanspm opened this issue Nov 29, 2017 · 3 comments

Comments

@sathappanspm
Copy link

sathappanspm commented Nov 29, 2017

Hi,
I am unable to run the code. The code was unable to generate sample data due to an error at Line 154 on generation.py.
Changing Line 154 on generation.py from

 seq.append([np.asscalar(dim[0],new_t)])

to

 seq.append([np.asscalar(dim[0]),new_t])

seems to generate sequences.

However, now running python RNNPP.py event generates tensorflow error

InvalidArgumentError (see above for traceback): Incompatible shapes: [256,126] vs. [256,123]
	 [[Node: RNNPP/mul_1 = Mul[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](RNNPP/Reshape_6, RNNPP/Slice_3)]]

Could you kindly help with this? Also, if possible could you also provide with the versions of different libraries used.

@azarezade
Copy link

Hi I have also the same issue, could you please help??

@xiaoshuai09
Copy link
Owner

Hi Sathappanspm,
Thanks for pointing out the bugs. I've have fixed it.

@aierdoit
Copy link

aierdoit commented Mar 8, 2018

hi xiaoshuai09,
can you show me the code about your evaluation metrics (prcision,recall,F1 Score)?

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