Fix a ValueError inside a machine learning program built with Keras

Completed Posted 5 years ago Paid on delivery
Completed Paid on delivery

In [login to view URL] from Model_v2 in the attachment, I got the following error :

ValueError: Error when checking target: expected activation_4 to have shape (3,) but got array with shape (2,)

You can look at the photo in the attachment, i.e. [login to view URL]

I changed the line 25 in [login to view URL] to get the labels ['1', '0', '-1'] instead of ['1', '-1']

How can I fix it?

Machine Learning (ML) Python

Project ID: #17404628

About the project

14 proposals Remote project Active 5 years ago

Awarded to:

dilichan

The error in the program seems to be a mismatch in the model output size and the size of the provided training data. This can be solved by modifying the model, or the training data. Relevant Skills and Experience Deep More

$180 CAD in 3 days
(7 Reviews)
4.0

14 freelancers are bidding on average $147 for this job

hamzaisb

I am a professional ML/NLP Engineer in an IT company with 3+ years of Python, Machine learning and Natural Language processing, have experience working with many challenging problems Relevant Skills and Experience al More

$155 CAD in 3 days
(59 Reviews)
6.4
andrewemel

Hi there, I would like to be considered for your project. I have 2+ years of experience in Neural Networks specially in Keras. I'll be glad to help. Best regards, Andrew Relevant Skills and Experience Keras Neural N More

$50 CAD in 1 day
(36 Reviews)
4.9
raghavajay3

sure, do let's share the code. will tell you the debug

$166 CAD in 3 days
(37 Reviews)
4.8
vorasiddh4it

View my last projects based on Data Mining, Machine Learning, Artificial Intelligence, python, java and I can complete your project perfectly. www.freelancer.com/u/vorasiddh4it#/reviews Relevant Skills and Experience More

$250 CAD in 7 days
(8 Reviews)
4.2
hiteshabheda

I have a team of Machine Learning and Python developers with 5+ years of experience. Relevant Skills and Experience We have an experience with Tensor flow and other Machine Learning techniques. We can do that. Propos More

$188 CAD in 3 days
(3 Reviews)
4.1
origami07

change keras script Relevant Skills and Experience python keras Proposed Milestones $155 CAD - complete

$155 CAD in 1 day
(12 Reviews)
3.9
Valuesolutions

Hello, i have read the details provided..please contact me to discuss more on the project deadline and some other few things Relevant Skills and Experience Machine Learning, Python Proposed Milestones $155 CAD - .

$155 CAD in 3 days
(9 Reviews)
5.0
hoanganh928

I think there is some mismatch in input or output shape in your model If you extract some of your data and send me, so I can reproduce your error Relevant Skills and Experience I have experience in training some pytho More

$100 CAD in 3 days
(1 Review)
1.0
rbhatiabscs15se9

This Issue does not seem to be big issue as i have been working in this since long, I want script and some more details or specific requirements if any . I would love to get a reply from you. Relevant Skills and Exper More

$144 CAD in 3 days
(0 Reviews)
0.0
vasilopoc

Dear Madam/Sir, The problem is that you have the wrong shape in your data. The data must be reshaped in order not to have this problem. Look forward to working with you. Relevant Skills and Experience In my diploma More

$111 CAD in 5 days
(0 Reviews)
0.0