Course 4, Week 4, Assignment 1, Exercise 3 - who_is_it()

Somehow I am getting a lower distance for younes than it should be: 0.35915437 instead of 0.5992946

I am pretty sure my distance calculation is correct, since it’s the same from the previous exercises:

dist = tf.reduce_sum(tf.square(tf.subtract(encoding,db_enc)),axis=-1)

Anybody else have the same issue?? Perhaps the model parameters were updated, or the images changed?

Or am I being stupid, and there is something wrong with my formula afterall…?

Plz, help me! :slight_smile:

1 Like

Welcome to the community !

What we are requested is L2 distance, not square of L2 distance. :slight_smile:

Ah, that was dumb… :smiley:

Thanks for the quick reply!