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
There is a bug on line 73 in computer_alpha_kernel_sparse.m
When I execute "run_phate_EB" it fails because the 2 operands of "./" are different sizes.
I think this could probably be corrected using "repmat", assuming that is what was intended.
I wonder if this line of code depends on a very recent feature in Matlab that does the "repmat" implicitly. Since many research lab run do not run the most up-to-date version of Matlab, it would be better to use repmat explicitly.
Here are more details:
>> run_phate_EB
PCA using random SVD
Elapsed time is 6.751585 seconds.
Doing PCA
PCA using random SVD
PCA took 8.1852 seconds
using alpha decaying kernel
Computing alpha decay kernel:
Number of samples = 16825
First iteration: k = 100
Error using ./
Matrix dimensions must agree.
Error in compute_alpha_kernel_sparse (line 73)
K=exp(-(kdist(idx_thresh,:)./epsilon(idx_thresh)).^a);
Error in phate (line 196)
K = compute_alpha_kernel_sparse(pc, 'k', k, 'a', a, 'distfun', distfun);
Error in run_phate_EB (line 35)
Y_PHATE_2D = phate(data, 't', 20);
When I print out the "size" of the 2 operands, ... here is what I get:
>> size( exp( kdist(idx_thresh,:)) )
ans =
9228 100
>> size( epsilon(idx_thresh) )
ans =
9228 1
The text was updated successfully, but these errors were encountered:
There is a bug on line 73 in computer_alpha_kernel_sparse.m
When I execute "run_phate_EB" it fails because the 2 operands of "./" are different sizes.
I think this could probably be corrected using "repmat", assuming that is what was intended.
I wonder if this line of code depends on a very recent feature in Matlab that does the "repmat" implicitly. Since many research lab run do not run the most up-to-date version of Matlab, it would be better to use repmat explicitly.
Here are more details:
When I print out the "size" of the 2 operands, ... here is what I get:
The text was updated successfully, but these errors were encountered: