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

ValueError: setting an array element with a sequence. #1

Open
manannahata opened this issue Jun 1, 2020 · 1 comment
Open

ValueError: setting an array element with a sequence. #1

manannahata opened this issue Jun 1, 2020 · 1 comment

Comments

@manannahata
Copy link

manannahata commented Jun 1, 2020

i am getting this following error when trying to run your code ..please provide me a solution to overcome it..

3343, 171)
(3343, 2)
(2229, 171)
(2229, 2)

TypeError                                 Traceback (most recent call last)
TypeError: float() argument must be a string or a number, not 'Tensor'

The above exception was the direct cause of the following exception:

ValueError                                Traceback (most recent call last)
<ipython-input-16-7996db5b94d7> in <module>()
     13 print( test_Y.shape )
     14 
---> 15 classifier = Classifier( number_of_classes=2 , maxlen=171 )
     16 #classifier.load_model( 'models/model.h5' )
     17 

10 frames
/usr/local/lib/python3.6/dist-packages/numpy/core/_asarray.py in asarray(a, dtype, order)
     83 
     84     """
---> 85     return array(a, dtype, copy=False, order=order)
     86 
     87 

ValueError: setting an array element with a sequence.
@shubham0204
Copy link
Owner

I have tried running the code again using TensorFlow 2.1. The code works fine. Anyways, I have updated the project with the latest commit. Please try running the updated files.

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