Community Profile

photo

Anish Potnis


Last seen: 3 years ago Active since 2018

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Fast method to find average pairwise distance of a very large matrix?
So I have a matrix that is 330,000 observations = rows x 160 variables = columns. I'd like to compute the average distance betwe...

4 years ago | 2 answers | 0

2

answers

Question


Why is my SVM able to classify above chance after cross-validation?
As a preface, I did see a similar question here, but I'm not sure it clarified my concern. I just wanted to understand classifie...

4 years ago | 0 answers | 0

0

answers

Question


Is there a way to do code folding on part of an if statement?
If I try to do code folding on lines 3-5 in the following simple example, then MATLAB automatically folds the entire if statemen...

4 years ago | 0 answers | 0

0

answers

Question


What's the difference between CData and FaceColor in bar()?
So let's say that I make a grouped bar chart, b = bar(rand(2,3)). b(1).FaceColor is a 1x3 vector with the color for the en...

4 years ago | 1 answer | 0

1

answer

Question


How can we optimize the weighting of dimensions in k-NN?
I'm using k-NN on high-dimensional data, and I wanted to make my classification robust to noisy or uninformative dimensions. I'v...

5 years ago | 0 answers | 0

0

answers

Question


What is the standard way to create a dependency graph in R2018a?
Now that depfun() is deprecated, a few of the MATLAB exchange tools that generate a graph of the dependency structure of a folde...

5 years ago | 1 answer | 0

1

answer

Question


Matrix similarity transformations introduce small imaginary eigenvalue components
So I'm having an issue with numerical precision. To boil my problem down... Let *A = eye(3) + 1e-6*rand(3)* (1) and let ei...

5 years ago | 1 answer | 0

1

answer

Answered
For loop is running 100x times slower on GPU than on CPU
I realized that I need to write more parallelizable code. tic; d=gpuArray(0); n=gpuArray(100); P=gpuArray(rand(3, ...

5 years ago | 1

| accepted

Question


For loop is running 100x times slower on GPU than on CPU
So I'm in the process of shifting some code over from CPU to GPU, and I ran into a weird issue where a loop on the GPU was runni...

5 years ago | 1 answer | 0

1

answer

Question


How can I adapt arrayfun() to operate on vectors rather than scalars?
I have a 45-variable function for which I'm trying to speed up computation of the finite-differencing based gradient, as functio...

5 years ago | 1 answer | 0

1

answer

Question


How can I use the GPU to parallelize computation of average pairwise distances?
I have a=rand(1, 1000) and b=rand(1, 1000), and I want to compute the average pairwise Euclidean distance between every point in...

6 years ago | 2 answers | 0

2

answers

Question


Is there a one-line way of vectorizing a matrix across rows?
Let's say I have A = [1 2 3; 4 5 6; 7 8 9] and I want a vector that is v = [1 2 3 4 5 6 7 8 9]. I can't figure out how to do thi...

6 years ago | 1 answer | 0

1

answer

Question


Why is VideoWriter only writing the first frame to a file?
I was trying to write some plots at 1 frame/second to a file, but VideoWriter is only writing the first frame. I constructed a s...

6 years ago | 2 answers | 0

2

answers