-
Notifications
You must be signed in to change notification settings - Fork 67
adjusting code to fit a multi-label problem #35
Comments
Hi @amandalucasp! That sounds like a really interesting extension! All that sounds great; I'll answer the question below: On
Honestly, |
Hi @MidoAssran! Thanks so much for the quick reply. |
Hi again @MidoAssran 😄 I'm trying a few different samplers, and wanted to test your Line 953 in 731547d
Thanks in advance! |
Hi @amandalucasp hope you're doing ok! Yes that logic makes sense to me, but happy to take a look at any code if you'd like to verify! All the |
I'm fine now, thanks =) Great! If it comes to that, will do :) thank you! And yes, I made sure This is what I get:
I believe it makes sense as I'm using label smoothing as you recommended. |
Hi @amandalucasp , I am trying to extend PAWS to multi-label classification problem and saw here that you are working on the same problem. Have you managed to write a new stratified sampler? If so, It would appreciate if you could please share your code. cheers! |
Hi @mahsaep :) My dataset is highly imbalanced therefore a custom sampler would be a bit complex, so for now I'm trying a different approach. Since I'm still not done with these experiments (some are still running), I haven't got back to the idea of adjusting pre-training with paws for a multi-label dataset... but good luck! =) Oh and btw, you should also keep in mind some remarks made in #35 (comment), that you might need to change the loss that's implemented. |
Hi! Thanks for sharing your work :)
I am trying to perform some tests using paws on a multi-label problem. Major changes I've have already implemented: (1) my dataset custom class and its corresponding "Trans" class as the "TransImageNet"; (2) implemented custom _make_data_transforms functions and _make_multicrop_data_transforms.
Now I'm working on adapting the
ClassStratifiedSampler
, and therefore alsolabels_matrix
. I'm having trouble fully understanding how these two work together: islabels_matrix
simply concatenating one-hot labels from the sampler (ClassStratifiedSampler
) and smoothing it? Also, do you think it make sense to adaptClassStratifiedSampler
to a multi-label dataset, or should I just use a regular sampler (then I could do as mentioned in #22 (comment))?Thanks in advance for any tip!
The text was updated successfully, but these errors were encountered: