I have a question on 9:24 why is it that you select on the print from 5 to 15 in labels; and yet it corresponds to rows strating from 0 on the df? Thank you, great serie by the way
You are so observant, well done. You are correct! The result of the print statement corresponds to the row index 5 to (15-1) and I said it incorrectly in the video. It just so happens that, by sheer luck, in labels, index 0 and index 5 vectors are identical!
in BreCaHAD dataset there is an image folder and a ground truth folder containing json files for each image.these json files have 7 labels of mitosis, tumer, ... . If under the label there was [ ] then that image doesn't have that label, but if there was coordinates [x: ..., y: ... ] under that label the image has that label. I have read the json files and cocatenate them in a dataframe. Now in df each row contains the information's of an image and the columns are the labels, I have problem with mapping these labels to images. Because the images are without labels in the image folder and the labels are in the corresponding json files. Your help and advice will be appreciated. 🙏
I just checked the BreCaHAD dataset. Each image in the image folder has a name. The same name is used in the ground truth folder for the corresponding json file for that particular image. That is why you have 162 images and exactly 162 json files. This is actually quite simple to handle, if I understand your question right. You just need to iterate over the images, for each image grab its name, and then in a nested loop, go over all the json files and if the name of any json file matched the name of the image file, then you read in that json file. You can use a dictionary structure to load these data in. For example, the (key, value) pair in this dictionary will be (image numpy array, the read json file). So, when you finish your iteration, you should have the entire dataset, stored in a dictionary. I hope this make sense.
@@MLDawn in BreCaHAD dataset there is an image folder and a ground truth folder containing json files for each image.these json files have 7 labels of mitosis, tumer, ... . If under the label there was [ ] then that image doesn't have that label, but if there was coordinates [x: ..., y: ... ] under that label the image has that label. I have read the json files and cocatenate them in a dataframe. Now in df each row contains the information's of an image and the columns are the labels, I have problem with mapping these labels to images. Because the images are without labels in the image folder and the labels are in the corresponding json files. Your help and advice will be appreciated. 🙏
Dude, this is awesome. You deserve way more views, this is gold!! Thank you!
I really appreciate it.
GOSH THE WAY you explain is such bright you are really inspiring me as a ml teacher simple explanation but very efficient
I really appreciate it 🙂
Thank you for your video! Hope your next video coming soon!
The next video will come in 2 weeks.
I have a question on 9:24 why is it that you select on the print from 5 to 15 in labels; and yet it corresponds to rows strating from 0 on the df? Thank you, great serie by the way
You are so observant, well done. You are correct! The result of the print statement corresponds to the row index 5 to (15-1) and I said it incorrectly in the video. It just so happens that, by sheer luck, in labels, index 0 and index 5 vectors are identical!
@@MLDawn I see, that is reassuring. Thanks a lot for your very quick response. And keep up the great work !!
in BreCaHAD dataset there is an image folder and a ground truth folder containing json files for each image.these json files have 7 labels of mitosis, tumer, ... . If under the label there was [ ] then that image doesn't have that label, but if there was coordinates [x: ..., y: ... ] under that label the image has that label. I have read the json files and cocatenate them in a dataframe. Now in df each row contains the information's of an image and the columns are the labels, I have problem with mapping these labels to images. Because the images are without labels in the image folder and the labels are in the corresponding json files. Your help and advice will be appreciated. 🙏
I just checked the BreCaHAD dataset. Each image in the image folder has a name. The same name is used in the ground truth folder for the corresponding json file for that particular image. That is why you have 162 images and exactly 162 json files. This is actually quite simple to handle, if I understand your question right. You just need to iterate over the images, for each image grab its name, and then in a nested loop, go over all the json files and if the name of any json file matched the name of the image file, then you read in that json file. You can use a dictionary structure to load these data in. For example, the (key, value) pair in this dictionary will be (image numpy array, the read json file). So, when you finish your iteration, you should have the entire dataset, stored in a dictionary. I hope this make sense.
Thanks
@@MLDawn
If you dont mind please teach them in a video.🙏
Thanks for your video. I have df that instead of 0's and 1's I have [ ] and [coordinates] . For this type of df how can I count ones-count-per-column?
Unfortunately It is nearly impossible to answer your question with the limited information provided.
@@MLDawn in BreCaHAD dataset there is an image folder and a ground truth folder containing json files for each image.these json files have 7 labels of mitosis, tumer, ... . If under the label there was [ ] then that image doesn't have that label, but if there was coordinates [x: ..., y: ... ] under that label the image has that label. I have read the json files and cocatenate them in a dataframe. Now in df each row contains the information's of an image and the columns are the labels, I have problem with mapping these labels to images. Because the images are without labels in the image folder and the labels are in the corresponding json files. Your help and advice will be appreciated. 🙏