C3W3 NLP, Higher Accuracy than expected, much trouble having the same results as expected by the grader

Hello it’s my first time asking here as this is the first i had this much trouble in the 7 courses i took from you , Although i have completed each exercise in the assignment according to the instructions available and do end up with real and accuracy higher than expected, i just can’t seem to match the grader here.
I am not sure if i can show the code here so i will just describe my problems and leave the lab Id
first problem:
I just don’t know how to make it have those exact shapes without getting errors. so i ended up with my solution, which i assume shouldn’t have too much trouble

second problem
TripletLossFn: i really can’t tell what am i supposed to differently to get the same results, i have been stuck here for so long, and this what propagated the different results most likely, i feel like i have really matched what was described above as best as possible, and seems all to be logically OK to me, so i don’t know.

third problem is the classification but that’s due to the loss function most likely

i would be really delighted if a mentor can take a look and explain what’s wrong why, as i have just been stuck for a long time here.
Thanks in advance.

LabId: dsyjluwjdema

1 Like

use shape=(1,) in defining both input1 and input2. This should solve your problem 1.
I am also stuck in problem 2. A mentor should do something about it

1 Like

Hi @Abdalrahman_Wael

Welcome to community!

As for the first problem, it’s clear that your shapes do not match (as suggested by Shafin).

As for the second, there’s a post against which you could check your values.

As for the third, you should fix the first two problems first. Then, there are posts like this and this.

In general, it’s beneficial to explore questions already asked by other learners (by Course and by Week). You could also make use of the search function of this forum (magnifying glass at top right corner).

Cheers

1 Like