Coder Social home page Coder Social logo

Comments (1)

jaron avatar jaron commented on August 27, 2024

Hi Thomas!

I think I see your problem - this particular part of the notebook requires the full UrbanSound8k dataset in the form of numpy objects in the directory data/us8k-np-cnn. I haven't checked that data into the Git repo as these files are huge (2GB).

You can generate that data, using the code in the section "Saving Extracted Features (optional)" in Notebook 3 - although I've just noticed the version I checked in creates only 3 folds in directory "data/us8k-np-cnn-mini", rather than the full 10 folds "data/us8k-np-cnn", so I've just committed a fix for that.

But if you do have all the data, you should see something like this...

*** Train on (1, 2, 3) Validate on 4 Test on 5 ***
fold1 features:  (5446, 60, 41, 2)
fold2 features:  (5388, 60, 41, 2)
fold3 features:  (5852, 60, 41, 2)
fold4 features:  (6048, 60, 41, 2)
fold5 features:  (5689, 60, 41, 2)
Building model...
Training model...
Train on 16686 samples, validate on 6048 samples
Epoch 1/2
16686/16686 [==============================] - 71s - loss: 2.2278 - acc: 0.2077 - val_loss: 1.9349 - val_acc: 0.4157
Epoch 2/2
16686/16686 [==============================] - 67s - loss: 1.9322 - acc: 0.3254 - val_loss: 1.7717 - val_acc: 0.3747
Evaluating model...
ROC: 0.808

Note the feature sizes of each of the folds. You can check the data exists as expected by looking at what Keras reports. I see in your screenshot it says "Train on 0 samples, validate on 0 samples" - whereas in mine it says "Train on 16686 samples, validate on 6048 samples".

If you'd like me to send you the numpy data objects by WeTransfer, drop me an email at [email protected]

Hope that helps!

from deep-listening.

Related Issues (4)

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.