In the assignment is all test passed the output is matched but when grading my score is zero.
Click on the show grader output for classify section to know why it failed
It’s show
There was an error grading your submission. Details:\n{{function_node _wrapped__Mul_device/job:localhost/replica:0/task:0/device:CPU:0}} Incompatible shapes: [3500,64] vs. [3500,0] [Op:Mul] name:
I print all the shape that in function classify but has no shape of [3500,64] or [3500,0].
remember the difference between the incompatible shape is related your second dimension that is 64.
Can I know how are you recalling your pred in the classify grader cell?
I suspect issue with the below
pred =
_, n_feat =
v1 =
v2 =
Extra hint
Regards
DP
pred = {codes removed by moderator}
_, n_feat = (codes removed by moderator}
v1 = pred[:, :128] incorrect code
v2 = pred[:, 128:] incorrect code
Is anything wrong ?
You are suppose to define the v1 and v2 according to _, n_feature and not assign values directly.
Refer
this image and do the changes
Problem Solved!! Thanks for your help.