You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, me again - I may have come across a bug, though of course it could simply be a mistake on my end. I was trying to replicate a line of code from the matlab demo where iterations are forced by and outside for-loop (i.e., each internal max_iter =1) What is happening is that when I try to run many iterations with W_init and H_init set to the previous W and H, I immediately receive this following error:
File "/home/jsherman/miniconda3/envs/mfadae/lib/python3.7/site-packages/seqnmf/seqnmf.py", line 58, in seqnmf
X[mask] = X_hat[mask]
IndexError: boolean index did not match indexed array along dimension 1; dimension is 96 but corresponding boolean dimension is 102
I am wondering if it has to do with the line below
ln 44 T = X.shape[1] + 2 * L
My simple reason is that for my case L is 3, so 2*L is 6 which is the amount of the index error
The original matlab shows % zeropad data by L X = [zeros(N,L),X,zeros(N,L)]; [N, T] = size(X);
This could well be a bug-- as I had mentioned, this library hasn't been debugged or tested with any sort of rigor. For what it's worth, I think the right way to set up some initial tests would be something like:
Load in the sample dataset from the MATLAB toolbox
Modify the MATLAB code so that it saves the output of each line
In the Python version, load in the same sample dataset, and verify that every line of the Python version matches each saved output from the MATLAB version
Hello, me again - I may have come across a bug, though of course it could simply be a mistake on my end. I was trying to replicate a line of code from the matlab demo where iterations are forced by and outside for-loop (i.e., each internal max_iter =1) What is happening is that when I try to run many iterations with W_init and H_init set to the previous W and H, I immediately receive this following error:
I am wondering if it has to do with the line below
ln 44
T = X.shape[1] + 2 * L
My simple reason is that for my case L is 3, so 2*L is 6 which is the amount of the index error
The original matlab shows
% zeropad data by L X = [zeros(N,L),X,zeros(N,L)]; [N, T] = size(X);
Their iterative code is
Mine is
The text was updated successfully, but these errors were encountered: