SheffieldML/deepGP

Inner matrix dimensions must agree error in demToyUnsupervised

psurya1994 opened this issue · 8 comments

I get this error when I run demToyUnsupervised. When I tried to debug, I found that the dimensions actually don't agree.

Error using  * 
Inner matrix dimensions must agree.

Error in ppcaEmbed (line 50)
    X = Ycentre*u(:, 1:dims)*diag(1./sqrt(v(1:dims)));

Error in vargplvmCreate (line 109)
    X = initFunc(model.m, q);

Error in vargplvmEmbed (line 67)
model = vargplvmCreate(latentDim, d, Y, options);

Error in hsvargplvmModelCreate (line 164)
                curX = [curX initFunc(m{i}, Q1, initXOptions{h}{:})];

Error in demToyHsvargplvm1 (line 101)
model = hsvargplvmModelCreate(Ytr, options, globalOpt, initXOptions);


Error in demToyUnsupervised (line 38)
demToyHsvargplvm1; % Run the actual demo

Error in tutorial (line 39)
demToyUnsupervised; % Call to the demo

Can you try to run demTutorial.m and see if it works there?

@Amar2407 I'm assuming you mean deepGP/matlab/tutorial.m. Tried that, didn't work from there either.

I will look at it surya and will get back to you!

Sure! :)

Hi, you may download netlab and add the path to demToyUnsupervised.

Oh thanks, I'll try that.

Works, thanks for the suggestion @WeiHuang05 :)

@psurya1994 I am glad that helps you