Coder Social home page Coder Social logo

Comments (7)

marmoi avatar marmoi commented on August 17, 2024

Hi,
Sorry for the late reply. All the files should be used, but of course you can manipulate it as you wish as far as you use the development data for training your model.
There is a script"model_size_calulation" where the model size can be calculated

from dcase2021_task1a_baseline.

dby124 avatar dby124 commented on August 17, 2024

Thanks for your reply.
Now I get the split data according to datasets\TAU-urban-acoustic-scenes-2020-mobile-evaluation\evaluation_setup\fold1_train.csv (9775) and fold1_test.csv(4190). Just 13965 files are used. Now, I just want to make sure if the .csv file is correct in evaluation_setup.

In addition, “model_size_calulation” seems only used to calculate the model size of the models built by keras.

I also have another question. I get a unexcepted logloss value (17.) and the accuracy is 48.11% in my own code. The provided data in DCASE website shows logloss: 1.461, accuracy: 46.9. So I am sure that something is wrong in my code.
The logloss is calculated by sklearn.metrics.log_loss(). I encode the y_true (The true label) and y_pred (predictions of test data) by one-hot encoding. Can you give me some suggestion.

from dcase2021_task1a_baseline.

dby124 avatar dby124 commented on August 17, 2024

from dcase2021_task1a_baseline.

marmoi avatar marmoi commented on August 17, 2024

Hi,
About the split, if you go to the dcase web page of the task, in the task setup, development dataset there is a table with details of how the split has done and that there are some files that hadn't been used for the train/test split.

Regarding the model calculation, just implement a function that counts all non-zero parameters of your model, regardless of they are trainable or non-trainable.

Finally, about the log_loss, we also use the one from sklearn.metrics. The only thing I can think about is perhaps you are modifying y_pred before using the log_loss function, the predicted probablilities should given to the function as they are returned by the model.

I hope this helps

from dcase2021_task1a_baseline.

dby124 avatar dby124 commented on August 17, 2024

from dcase2021_task1a_baseline.

marmoi avatar marmoi commented on August 17, 2024

Hi,
Copied from the dcase web page: "System output should be presented as a single text-file (in CSV format, with a header row) containing a classification result for each audio file in the evaluation set. In addition, the results file should contain probabilities for each scene class. Result items can be in any order. Multiple system outputs can be submitted (maximum 4 per participant per subtask)."

from dcase2021_task1a_baseline.

dby124 avatar dby124 commented on August 17, 2024

from dcase2021_task1a_baseline.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.