Community Profile

photo

MA


Last seen: ungefär 2 månader ago Active since 2019

Statistics

  • Thankful Level 3
  • First Answer

View badges

Content Feed

View by

Question


How to tell two categorical arrays with different categories names are the same
Assume I have two categorical arrays as for example the following: X=[1,1,2,3]; y=[3,3,1,2]; The two arrays have different cl...

5 månader ago | 1 answer | 0

1

answer

Answered
dlgradient: covariance matrix derivative.
I actually solve it. For anyone looking for the same problem: function [y,dx]=cov_der(x) %simple example %x=dlarray(and(3,3)...

8 månader ago | 0

| accepted

Question


dlgradient: covariance matrix derivative.
Assuming I have a matrix x of size (mxn), the covariance matrix is of the size nxn. I want to find the gradient of the covarianc...

8 månader ago | 2 answers | 0

2

answers

Answered
error message: 'dlgradient' inputs must be traced dlarray objects or cell arrays, structures or tables containing traced dlarray objects. To enable tracing, use 'dlfeval'.
It seems I solve it. The parameters needs to be dlarry as well as follows: parameters.batchnorm1.Offset = initializeZeros([5 1...

8 månader ago | 0

| accepted

Question


error message: 'dlgradient' inputs must be traced dlarray objects or cell arrays, structures or tables containing traced dlarray objects. To enable tracing, use 'dlfeval'.
I want a small network that contains only a batch normalization layer followed by fully-connected layer, softmax and finally cro...

8 månader ago | 1 answer | 0

1

answer

Question


convolution of multiple images with multiple filters
Let's assume I have a set of images in one variable X, where the size of this variable is 4D [width, height, channels, number of...

10 månader ago | 1 answer | 0

1

answer

Question


a simple vector to a matrix
Hello everyone, I am trying to write a code that convert a vector like the following for example: X=[1 2 3]; to a matrix l...

10 månader ago | 2 answers | 0

2

answers

Question


Multiplication of very large matrix
Hello everyone, Could anyone help me in re-writing the following equation to make the processing faster. N here is the number ...

mer än ett år ago | 1 answer | 0

1

answer

Question


generalized eignvalues/eignvectors
I want to solve the following generalized eignvalues/eignvector problem: A*w=D*B*w Where A is my first square matrix and B my...

nästan 2 år ago | 1 answer | 0

1

answer

Question


accuracy of two methods to solve eignvalues/eignvector problem
I am trying to solve an eignvalue/eignvector problem related to the multi-class LDA. The equation is inv(Sw)*Sb. I have two solu...

mer än 2 år ago | 1 answer | 0

1

answer

Question


combine each 8 matrices in a cell array
I have a cell array that contain matrices of the same dimentions. I want an effictive way to combine each 8 matrices together in...

mer än 2 år ago | 1 answer | 0

1

answer

Answered
sample from data according to a class with no replacement
I just solve it. So, for anyone who is looking for an answer, it is the following: new_sample= datasample(X(T==L,:),K,'replace...

nästan 3 år ago | 0

| accepted

Question


sample from data according to a class with no replacement
Lets say that I have a matrix n*m where n represented the instances while m representing the attributes. I have another column v...

nästan 3 år ago | 1 answer | 0

1

answer

Answered
Create variable from an excel entry
% you may need something like the following Plot.Shift=xlsread('filename.xlsx',1,'B1'); %file name, row number, column numb...

nästan 3 år ago | 0

Answered
find all elements (cells) of a single element (cell) in cell array
I found the answer if anyone is looking for something similar for i=2:size(c,1) if (isequal(c{1,1},cell2mat(c(i,:)))) index=...

nästan 3 år ago | 0

| accepted

Question


find all elements (cells) of a single element (cell) in cell array
I have the following cell array (c) which is 3*2. Now I want to find all elements of lets say c{1,1} which is [3,2]. The answer ...

nästan 3 år ago | 2 answers | 0

2

answers

Question


avoid for loop in a specific code
Could anyone help me if there is any way to avoid for loop in the following code: Both Target and predicted_target are vectors w...

ungefär 3 år ago | 1 answer | 0

1

answer