Closed gehaniaarti closed 1 year ago
@gehaniaarti have you tried with the default parameters? It looks like your dataset is very small. TCN are harder to train than CNN and MLP. If you look at the examples, TCN need tens of thousands of example to perform well. Also what data are you using for audio classification? Spectrogram? Wavelengths?
What do you mean by default parameters?
Yes, the dataset is smaller as that is our targeted scenario. Does that mean, I won’t get good accuracy using TCN on smaller datasets?
On Fri, Aug 4, 2023 at 7:21 PM Philippe Rémy @.***> wrote:
@gehaniaarti https://github.com/gehaniaarti have you tried with the default parameters? It looks like your dataset is very small. TCN are harder to train than CNN and MLP. If you look at the examples, TCN need tens of thousands of example to perform well.
— Reply to this email directly, view it on GitHub https://github.com/philipperemy/keras-tcn/issues/248#issuecomment-1666354585, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSBUCO5MK4HEVUM6U6TFNLXTWUZFANCNFSM6AAAAAA235S72M . You are receiving this because you were mentioned.Message ID: @.***>
Default parameters means just calling TCN()
like this.
Yes I think your dataset is too small to have something that can work reasonably well.
Ok, let me give it a try and get back to you with updates.
Thanks, Aarti
On Sun, Aug 6, 2023 at 9:34 PM Philippe Rémy @.***> wrote:
Default parameters means just calling TCN() like this. Yes I think your dataset is too small to have something that can work reasonably well.
— Reply to this email directly, view it on GitHub https://github.com/philipperemy/keras-tcn/issues/248#issuecomment-1667170304, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSBUCICCLQW2KE4YM4JNZTXUBV6PANCNFSM6AAAAAA235S72M . You are receiving this because you were mentioned.Message ID: @.***>
I tried using the default parameters but still it gives me low accuracy (35% training accuracy and 21% testing accuracy). Although it is better than when I was not using the default parameters but still is not good.
Can we conclude that since the dataset is limited we are getting low accuracy? Or is there anything that I am missing?
On Mon, Aug 7, 2023 at 1:46 PM Aarti Gehani @.***> wrote:
Ok, let me give it a try and get back to you with updates.
Thanks, Aarti
On Sun, Aug 6, 2023 at 9:34 PM Philippe Rémy @.***> wrote:
Default parameters means just calling TCN() like this. Yes I think your dataset is too small to have something that can work reasonably well.
— Reply to this email directly, view it on GitHub https://github.com/philipperemy/keras-tcn/issues/248#issuecomment-1667170304, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSBUCICCLQW2KE4YM4JNZTXUBV6PANCNFSM6AAAAAA235S72M . You are receiving this because you were mentioned.Message ID: @.***>
Yes the dataset is too small.
I am trying to classify audio signals using TCN. For obtaining the TCN hyperparameters, I am using keras-tuner. It runs perfectly fine but I am getting low training and testing accuracies (something like 26% and 17%, respectively). The code is as follows:
The shapes for the training, testing and validation datasets are as follows: shape of X_train is: (219, 99, 32), shape of X_Val is: (27, 99, 32), shape of X_Test is: (28, 99, 32), shape of Y_train is: (219, 5), shape of Y_Val is: (27, 5), shape of Y_Test is: (28, 5)
A similar approach gave me good results with CNN, CRNN and MLP but is not working here.