-
Notifications
You must be signed in to change notification settings - Fork 67
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: Optimizer weight shape (6,) not compatible with provided weight shape (800, 6) #3
Comments
Can you please paste the whole stack trace? Also are you on Keras version 1? |
Can you specifiy tensorflow and keras version that was used for training |
We only used Theano, no Tensorflow. I think most experiments were run on Theano |
I have Keras installed. Can I use Keras here to implement the codes? |
@HangsunKim not sure I understand the question. You need |
@nikicc Thanks for your reply. I have the pandas and keras library installed. I've always done deep learning by importing keras, as tensforflow as the backend. I think then I'll be able to run the codes then. I asked this question because you somewhere indicated that the codes are run on theano. That was my concern. |
Yes, the models were trained using Keras with Theano backend. I'm not sure if the models can be loaded and used with Tensorflow for not. Let me know if this will work for you on Tensorflow. |
@nikicc I'm trying to run the demo codes with Theano as backend. Do you know what could be wrong and how I could fix this? Thanks in advance. |
Are you sure you're on Python 3? |
@nikicc Oh, I was using python 2.7. Okay, so I tried on python 3.6, but now I get the |
To be sure, use the same version of Theano that I did: |
@nikicc Thanks, I installed theano 0.8.2 but now I get the below error. Are you familiar with this error? |
@HangsunKim no idea what that error is about, sorry. |
@nikicc It's okay.. I'm in Python 3.6. May I know which python version you are using? Thanks. |
I think I was on 3.6 as well. |
I now get this error. |
Don't know. Are you sure you are on |
Hey! @HangsunKim Finally solved this issue. Follow these steps:
Cheers! |
@SidShenoy thanks for posting this! |
I couldn't install the version, any problem? it says 'could not find a version that satisfies the requirement emotion_predictor (from versions: ) No matching distribution found for emotion_predictor.' |
sir please give where i want to run the following code : in jupiter notebook or anaconda prompt |
these codes:
|
i got those errors while running through jupitter notebook |
@venkatshan707 seem like the issue is in the backend your Keras is trying to use. According to the above screenshots your Keras wants to invoke a |
Sir,after setting a background from where we want to start our code
execution.I am just started to learn(very beginner) data science.I am doing
my final year project with your code. I failed to execute your code. Can
you please,send user manual of that code execution (or) please,teach me how
we want to execute our code in step by step manner using TeamViewer or
anydesk.please I tried my level best.please help me sir.
…On Sun 17 Feb, 2019, 6:18 PM nikicc, ***@***.***> wrote:
@venkatshan707 <https://github.com/venkatshan707> seem like the issue is
in the backend your Keras is trying to use. According to the above
screenshots your Keras wants to invoke a tensorflow backend, while you
will need to use theano backend to use the emotion predictiors from this
repository. More precisely, you'll need theano==0.8.2 (see the requirements
file
<https://github.com/nikicc/twitter-emotion-recognition/blob/master/requirements.txt>).
Check this page in the Keras documentation <https://keras.io/backend/> to
figure out how to switch to theano backend.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AddwCAKf66gQo36Pnfa1XOOCIGFhg_NBks5vOU-mgaJpZM4PoL1R>
.
|
@venkatshan707 if you set the backend up, then you should be able to start the code either from Jupiter or python script. What is the error you are seeing now after the backend has been set? Sorry but I don't have any user manual I could share with you. |
sir ,can you please help me with teamviewer . |
just 10 mins |
@venkatshan707 I think it's easier if we keep the communication here. What is the error you are seeing now? |
how to import emotion predicator module... |
@chandrasekhar8283 see https://github.com/nikicc/twitter-emotion-recognition#example-usage |
how to import emotion predicator module... |
@Mounika2825 are you in the correct folder when executing your code? The example assumes you are in the same folder where the emotion_predictor.py file is. |
@nikicc Thanks a lot.. i executed the code.... Can i get accuracy by using this code ? |
how can i implement this code in google colab? |
@Mounika2825 the current code does not support calculating the accuracy. You would need to implement that yourself. Also, not sure about the google colab. |
How can i get accuracy by using models of unison |
@Mounika2825 not sure which accuracy are you interested in. If you want to know the accuracy of the models as we estimated it, look at the paper for more details; but approximately the accuracy is around 70%. If you want to know the accuracy of the model on your own data set, then you'd need to calculate that yourself. |
I get this error when i try to load an existing model.
The text was updated successfully, but these errors were encountered: