-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loss confusion #2
Comments
The loss function that I used in the competition just turned out to be cross entropy. Since I tried different things none of them produced better results that it so you probably can just use the built in Pytorch CE loss. |
1)we have got secondary classes also so how u converted CE loss to work for this?
|
It is a multi-label classification problem. So it is BCE loss for each of the outputs.
If you see the code audioset_tagging_cnn, it contained the original implementation. I just adapted it to my use case. It has been a while since I have looked at the code but if you debug through the code you can see the shapes. |
Thanks .btw today is last day to join competition. By any chance you can
make your mind to join competition through our team ,you can guide us
through we will work on for 1 week
…On Sat, 22 May 2021, 23:30 Ryan Wong, ***@***.***> wrote:
1)we have got secondary classes also so how u converted CE loss to work
for this?
It is a multi-class classification problem. So it is BCE loss for each of
the outputs.
1. what are shapes returned below ...
If you see the code audioset_tagging_cnn
<https://github.com/qiuqiangkong/audioset_tagging_cnn>, it contained the
original implementation. I just adapted it to my use case. It has been a
while since I have looked at the code but if you debug through the code you
can see the shapes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJDFNZFNPTFFSBGNJUQKGADTO7WKXANCNFSM45KVJDXA>
.
|
Sorry, if you are talking about the BirdCLEF 2021 competition, I currently don't have the time to focus on a new competition. |
Sure ,
One more thing in your kernel youbset duration as 20 .
Did you train model on larger duration if yes how we can map prediction
made on larger time sequences to shorter clip prediction for submission .
Any suggestion ?
…On Mon, 24 May 2021, 15:29 Ryan Wong, ***@***.***> wrote:
Sorry, if you are talking about the BirdCLEF 2021 competition, I currently
don't have the time to focus on a new competition.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJDFNZCWMXNHCTIBHNFDMK3TPIPR5ANCNFSM45KVJDXA>
.
|
I am not sure which kernel you are referring to as I didn't use 20 second clips. I used 30 second durations. I suggest debugging through Arai's notebook to get a better understanding of how attention works with the SED network as once you understand that then you will understand how to use larger durations. Alternatively go through the original author's paper for more details. |
Thanks for your reply
Key issue in competition is domain gap between test and train data that is
sound source is different devices for each .
Any good suggestion to address this different data source issue .
…On Mon, 24 May 2021, 20:23 Ryan Wong, ***@***.***> wrote:
I am not sure which kernel you are referring to as I didn't use 20 second
clips. I used 30 second durations.
I suggest debugging through Arai's notebook
<https://www.kaggle.com/hidehisaarai1213/introduction-to-sound-event-detection>
to get a better understanding of how attention works with the SED network
as once you understand that then you will understand how to use larger
durations. Alternatively go through the original author's paper
<https://arxiv.org/abs/1912.10211> for more details.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJDFNZFS6TLZXVZ3YCSP27LTPJR5TANCNFSM45KVJDXA>
.
|
Questions relating to current Kaggle competitions should be posted on Kaggle: https://www.kaggle.com/c/birdclef-2021/discussion?sort=recent-comments |
in SEDPosNegloss
could u help explain what is happening here.
Why do we assign zero mask in case of sec label >0
<!--StartFragment--> y_ones_mask = torch.ones_like(y_sec_true, requires_grad=False) y_zeros_mask = torch.ones_like(y_sec_true, requires_grad=False) *self.secondary_factor y_secondary_mask = torch.where(y_sec_true > 0.0, y_zeros_mask, y_ones_mask)<!--EndFragment-->
The text was updated successfully, but these errors were encountered: