Classify Points - Challenge using keras

Hi,

I have implemented the code like that in the sentiment analysis problem using keras. I have two dense layers and since the features are only 2, i have specified the input_size=(2, ) when adding the first layer of the model. However, I am getting some error with the input size. Here is the link to my code: https://ide.codingblocks.com/s/331165

Here is the screenshot of the error:

Hey @A18ML0031, I understand the error. Please check if you can now upload and share the link of google colaboratory .ipynb file here ? I will have to see the outputs of each cell to understand your error.

Thanks !

Here is the notebook file: https://drive .google .com/file/d/1GZIjetZs5WlsjlBw9DNnqLAx_8Tg16Gy/view?usp=sharing . Also, I have not executed this code in google colab but on jupyter. I don’t think the error will be because of that or is it?

Please check your link. It does not work for me.

It is working. Copy the link to the address bar and remove the spaces. We can only post coding blocks ide link here. I have added spaces between. Remove those and you’ll get my google colab ipynb file

Hey @A18ML0031, can you please run the cells and print the value of x_val and y_val. And also X_train_new and Y_train_new. Also how many classes are you trying to predict in classify points ?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.