hi guys! i am a beginner of deep learning in medical, and this is my first try to finish an assignment of diagnose
but i can’t understand what should i do in this section of C1_W1_Assignment
i have defined what is df1 & df2, and i found the overlap patients , df1_patients_unique, df1_patients_unique
but i don’t know what the
leakage equals ? and how can i get the output like the expected output under?
kindly share only the error image. Do not include any of grader code in your image while posting on public thread topic.
You have shared an image of the expected output but not of the error you are getting. When I asked you for the error image, I mean when you didn’t the expected output there must have come an image describing where you might have gone wrong, that part of the image can you share?
Based on the first image which you shared, you are hard coding your codes.
The simplest way would be first define the uniques values in both groups separately for example start by df1_patients_unique
Then once you have created unique values for both df1 and df2 group, create an intersection between both groups using python’s set.intersection() function. This you can recall as patient in both groups.
Then to know leakage, just recall with len function from the previously recalled patient in both groups being greater than 0 (#boolean (true if there is at least 1 patient in both groups), which will give you the expected output.
Let me know if you still need help!!!
thank you ! i will have a new try
I had so many classes yesterday so my mind was confused, now i am clear to finish it