Hi, I am having trouble with the Classify function. I am getting the error below. when i try to check the shape of y_pred. it says that it’s not defined, but an an empty list was created at the top y_pred = [ ] and later i fill out the code y_pred = tf.cast(d>threshold, tf.float64
Can someone assist me with this
hi @mackaseck
See if this helps you
Also check your v1 and v2 are recalled correctly, for this you can refer the below link
if issue still persist, then kindly share screenshot of complete error log as in the image you shared the lower half of the error only. When you have a lengthier error log, you can take two separate screenshots and post.
Just a reminder please make sure not to post any codes here as it is against community guidelines.
Regards
DP
is your pred codes correctly written. I hope you know you are not suppose to use q1 q2 rather the test_gen using the model.predict
i believe so. i message you a screenshot of the code so that i don’t have to share it here.
you haven’t used the axis argument while calculating the cosine similar as per instructions
Thank you so much Deepti!