Code Monkey home page Code Monkey logo

Comments (1)

Po0ria avatar Po0ria commented on July 26, 2024

What you need to do is to download the dataset from this link. Uncomment the lines from 101 to 107 in ./SHD/intro.py:

test_X,testy = generate_dataset(files[0],dt=4e-3)
np.save('/Path/to/directory/to/save/testX_4ms.npy',test_X)
np.save('/Path/to/directory/to/save/testY_4ms.npy',testy)

train_X,trainy = generate_dataset(files[1],dt=4e-3)
np.save('/Path/to/directory/to/save/trainX_4ms.npy',train_X)
np.save('/Path/to/directory/to/save/trainY_4ms.npy',trainy)

Run the script to get the numpy version of the train and test dataset. Then modify the path to train and test datasets in srnn_2layer-finalized (1).py :

train_X = np.load('data/trainX_10ms.npy')
train_y = np.load('data/trainY_10ms.npy').astype(np.float)

test_X = np.load('data/testX_10ms.npy')
test_y = np.load('data/testY_10ms.npy').astype(np.float)

Pay attention that the name of the file is based on the dt which is an argument to generate_dataset() function.
Now just run srnn_2layer-finalized (1).py for training.

from srnn-icons2020.

Related Issues (2)

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.