Skip to content
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

Tailoring the load.py for using my own data #2

Open
kapilagrawal95 opened this issue May 5, 2018 · 3 comments
Open

Tailoring the load.py for using my own data #2

kapilagrawal95 opened this issue May 5, 2018 · 3 comments

Comments

@kapilagrawal95
Copy link

Hi
I have a time series data almost similar to jsb_chorales data. The only difference is that for each timestep jsb_chorales has 88 binary values while I have one continuous value so essentially my one sequence can be represented in a 1-d array. I would like to train a dmm on my data.

I tried to understand the simulateLinearData but I couldn't entirely comprehend the code; mainly because of this line:
zlist= [np.copy(z)[:,None,:]]
I am unable to visualize it.

@rahulk90
Copy link
Member

rahulk90 commented May 6, 2018

I could be misunderstanding your question but you don't need to use simulateLinearData for setting up the dataset. Yo have to format your data into a 3D tensor with shape: N x T x 1 (in your case since you have one-dimensional data)

You may find this ipython notebook helpful for setting up the data (See A] Data):
Notebook - Setup

@kapilagrawal95
Copy link
Author

Thanks! That resolved my above query.
Another thing: my dataset's time-series vary. Will the algorithm work in that case? And will the 3-d tensor have shape: N x (T_max) x 1?

@rahulk90
Copy link
Member

rahulk90 commented May 6, 2018

Yes. Search for mask in the ipython notebook. It should tell you how to specify variable length sequences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants