Fix a ValueError inside a machine learning program built with Keras

Fullført Lagt ut 5 år siden Betales ved levering
Fullført Betales ved levering

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

Prosjekt-ID: #17404628

Om prosjektet

13 bud Eksternt prosjekt Aktiv 5 år siden

Tildelt til:

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 Mer

$180 CAD på 3 dager
(7 omtaler)
3.9

13 frilansere byr i gjennomsnitt $141 for denne jobben

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 Mer

$155 CAD på 3 dager
(61 Omtaler)
6.5
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 på 3 dager
(20 Omtaler)
5.8
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 Mer

$50 CAD på 1 dag
(36 Omtaler)
4.9
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 Mer

$250 CAD på 7 dager
(11 Omtaler)
5.0
raghavajay3

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

$166 CAD på 3 dager
(37 Omtaler)
4.8
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 Mer

$188 CAD på 3 dager
(3 Omtaler)
4.0
origami07

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

$155 CAD på 1 dag
(12 Omtaler)
3.9
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 Mer

$100 CAD på 3 dager
(1 anmeldelse)
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 Mer

$144 CAD på 3 dager
(0 Omtaler)
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 Mer

$111 CAD på 5 dager
(0 Omtaler)
0.0