Month: June 2024
Calculating then sorting by Highest to Lowest Average for Case Data in Excel
Hi!
I’m hoping someone may be able to assist with something I am trying to achieve in excel with regards to calculating the average case resolution time on case data for a set of customers, so I can then sort my spreadsheet from highest to lowest to identify which customer’s cases are taking the longest to resolve.
I’ve attached a very simplified example of what the spreadsheet looks like – but the actual data I’m working with contains several hundred customers with over 4000 cases (rows) meaning I need to find a way to automate this through a formula of some sort.
Any help would be appreciated 🙂
Hi! I’m hoping someone may be able to assist with something I am trying to achieve in excel with regards to calculating the average case resolution time on case data for a set of customers, so I can then sort my spreadsheet from highest to lowest to identify which customer’s cases are taking the longest to resolve. I’ve attached a very simplified example of what the spreadsheet looks like – but the actual data I’m working with contains several hundred customers with over 4000 cases (rows) meaning I need to find a way to automate this through a formula of some sort. Any help would be appreciated 🙂 Read More
System of nonliner equations with symbolic variables
Hi there,
I would like to ask you how to solve a system of nonlinear equations while using symbolic variables.
I have two equations that I need to solve:
eqT = 10*lamT^13*lamZ^13 – 10/lamT^13 – 10*lamT^2*lamZ
eqZ = 10*lamT^13*lamZ^13 – 10/lamZ^13 – 5*lamT^2*lamZ
where lamT and lamZ are symbolic.
I was trying to search for it and most times I have found to use matlabFunction and fsolve. But it doesn’t work for me. Probably I understand it wrong or maybe I am doing another mistake.
fun = matlabFunction(eqT, eqZ)
eqsol = fsolve(fun,[1 1])
Can you please help me and explain me what I am doing wrong.
Thank you very much
P.S.: it is not possible not to use symbolic variables. They are used for some derivations before. Also it is not possible to rewrite the equations manually because they are to be solved many times in for cycle with different constants.Hi there,
I would like to ask you how to solve a system of nonlinear equations while using symbolic variables.
I have two equations that I need to solve:
eqT = 10*lamT^13*lamZ^13 – 10/lamT^13 – 10*lamT^2*lamZ
eqZ = 10*lamT^13*lamZ^13 – 10/lamZ^13 – 5*lamT^2*lamZ
where lamT and lamZ are symbolic.
I was trying to search for it and most times I have found to use matlabFunction and fsolve. But it doesn’t work for me. Probably I understand it wrong or maybe I am doing another mistake.
fun = matlabFunction(eqT, eqZ)
eqsol = fsolve(fun,[1 1])
Can you please help me and explain me what I am doing wrong.
Thank you very much
P.S.: it is not possible not to use symbolic variables. They are used for some derivations before. Also it is not possible to rewrite the equations manually because they are to be solved many times in for cycle with different constants. Hi there,
I would like to ask you how to solve a system of nonlinear equations while using symbolic variables.
I have two equations that I need to solve:
eqT = 10*lamT^13*lamZ^13 – 10/lamT^13 – 10*lamT^2*lamZ
eqZ = 10*lamT^13*lamZ^13 – 10/lamZ^13 – 5*lamT^2*lamZ
where lamT and lamZ are symbolic.
I was trying to search for it and most times I have found to use matlabFunction and fsolve. But it doesn’t work for me. Probably I understand it wrong or maybe I am doing another mistake.
fun = matlabFunction(eqT, eqZ)
eqsol = fsolve(fun,[1 1])
Can you please help me and explain me what I am doing wrong.
Thank you very much
P.S.: it is not possible not to use symbolic variables. They are used for some derivations before. Also it is not possible to rewrite the equations manually because they are to be solved many times in for cycle with different constants. symbolic, fsolve MATLAB Answers — New Questions
Solving symbolic array.
I am working with symbolic vector of 1xN size. The vector contains N eqations in the from of
X == a + b + c
Y == X*(d + e + f)
Z == Y + X
I am suing subs to substitute the coefficients a b c d e f with numeric values. The result is in the form of
X == g
Y ==X*h
Z == Y +X
It sould be quite straigh forward to solve for Z since all variables are numeric, but for crying out loud I cannot make matlab to solve for Z.
Any ideas?I am working with symbolic vector of 1xN size. The vector contains N eqations in the from of
X == a + b + c
Y == X*(d + e + f)
Z == Y + X
I am suing subs to substitute the coefficients a b c d e f with numeric values. The result is in the form of
X == g
Y ==X*h
Z == Y +X
It sould be quite straigh forward to solve for Z since all variables are numeric, but for crying out loud I cannot make matlab to solve for Z.
Any ideas? I am working with symbolic vector of 1xN size. The vector contains N eqations in the from of
X == a + b + c
Y == X*(d + e + f)
Z == Y + X
I am suing subs to substitute the coefficients a b c d e f with numeric values. The result is in the form of
X == g
Y ==X*h
Z == Y +X
It sould be quite straigh forward to solve for Z since all variables are numeric, but for crying out loud I cannot make matlab to solve for Z.
Any ideas? equation, solve MATLAB Answers — New Questions
HOW TO ADD ONE COLUMN BASED ON ANOTHER COLUMN
I have a file containing some columns.
hru sub year mon area gw_rchrg
1 1 2016 1 61 1.87
2 1 2016 1 233 2.91
3 1 2016 1 345 5.45
4 1 2016 1 600 1.23
5 1 2016 1 400 2.67
6 1 2016 1 235 1.34
7 2 2016 1 123 3.67
8 2 2016 1 178 4.78
9 2 2016 1 345 1.56
10 2 2016 1 430 2.67
11 2 2016 1 250 1.12
12 2 2016 1 278 2.12
I have a excel file which has 7 colums. In colum 2 there are rows containing 1 and 2. I want to do some operations.
The second column as 1 value. I want to multiply the values of column 5 and column 6 and add them according to 1 value if column 2. Similarly do it for 2 values of column 2. If there is any code for this?I have a file containing some columns.
hru sub year mon area gw_rchrg
1 1 2016 1 61 1.87
2 1 2016 1 233 2.91
3 1 2016 1 345 5.45
4 1 2016 1 600 1.23
5 1 2016 1 400 2.67
6 1 2016 1 235 1.34
7 2 2016 1 123 3.67
8 2 2016 1 178 4.78
9 2 2016 1 345 1.56
10 2 2016 1 430 2.67
11 2 2016 1 250 1.12
12 2 2016 1 278 2.12
I have a excel file which has 7 colums. In colum 2 there are rows containing 1 and 2. I want to do some operations.
The second column as 1 value. I want to multiply the values of column 5 and column 6 and add them according to 1 value if column 2. Similarly do it for 2 values of column 2. If there is any code for this? I have a file containing some columns.
hru sub year mon area gw_rchrg
1 1 2016 1 61 1.87
2 1 2016 1 233 2.91
3 1 2016 1 345 5.45
4 1 2016 1 600 1.23
5 1 2016 1 400 2.67
6 1 2016 1 235 1.34
7 2 2016 1 123 3.67
8 2 2016 1 178 4.78
9 2 2016 1 345 1.56
10 2 2016 1 430 2.67
11 2 2016 1 250 1.12
12 2 2016 1 278 2.12
I have a excel file which has 7 colums. In colum 2 there are rows containing 1 and 2. I want to do some operations.
The second column as 1 value. I want to multiply the values of column 5 and column 6 and add them according to 1 value if column 2. Similarly do it for 2 values of column 2. If there is any code for this? column, row MATLAB Answers — New Questions
Impossible to list rows in power automate
Hello,
I’m a beginner on power automaton and I’m facing a case I can’t solve.
The 1st step of my flow is to create an xls file on sharepoint with PBI as data source.
The file is saved in a folder under the name Docusign.xls.
There’s nothing to stop me dropping it each time under a different name, Docusign_date.xls, if necessary to solve my problem.
I can’t use list rows to obtain the columns contained in this excel file. I’ve tried the following method:
1) Send the file always under the same name and move it to a folder once processed because sharepoint prevents the creation of a file with the same name in the same folder.
When I rerun the stream, I lose the path (which is hard-coded) to the file in List rows.
2) Send the file under a different name, but I don’t know how to recover the columns of my new file in list rows.
In short, if the path is not hard-coded, it won’t work. And since it’s a new file every time I run a feed, I don’t know how to do it.
I thought of an office script that would compare the 2 files (id) and write the new lines in file 2. This file 2 would always stay in the same place. But I don’t know if it’s possible
Thanks in advance for your help
Hicham
Hello,I’m a beginner on power automaton and I’m facing a case I can’t solve.The 1st step of my flow is to create an xls file on sharepoint with PBI as data source.The file is saved in a folder under the name Docusign.xls.There’s nothing to stop me dropping it each time under a different name, Docusign_date.xls, if necessary to solve my problem.I can’t use list rows to obtain the columns contained in this excel file. I’ve tried the following method:1) Send the file always under the same name and move it to a folder once processed because sharepoint prevents the creation of a file with the same name in the same folder.When I rerun the stream, I lose the path (which is hard-coded) to the file in List rows.2) Send the file under a different name, but I don’t know how to recover the columns of my new file in list rows.In short, if the path is not hard-coded, it won’t work. And since it’s a new file every time I run a feed, I don’t know how to do it. I thought of an office script that would compare the 2 files (id) and write the new lines in file 2. This file 2 would always stay in the same place. But I don’t know if it’s possible Thanks in advance for your help Hicham Read More
Account recovery
I have completed the account recovery form, but I haven’t heard anything after 24 hours.
I recently had to reset my phone and forgot my password for my Outlook account. The Authenticator doesn’t work due to the reset. I’ve filled out the form for account recovery several times. The first few times I immediately received mail that I had to add information. I did that and it said it would be reviewed within 24 hours. When will I know my account can be recovered?
I have completed the account recovery form, but I haven’t heard anything after 24 hours. I recently had to reset my phone and forgot my password for my Outlook account. The Authenticator doesn’t work due to the reset. I’ve filled out the form for account recovery several times. The first few times I immediately received mail that I had to add information. I did that and it said it would be reviewed within 24 hours. When will I know my account can be recovered? Read More
Ncorr post Fail help
Hello Friends,
I apologize in advance if I skip some protocol to post my problem, but I am new to matlab and the forum. After long attempts to make Ncorr_Post run, I decided to consult by this means.
To summarize, I have already processed images with the add on Ncorr, I managed to realize that even the results obtained were saved correctly, generating some workspace with the field of displacement and deformations for each image that allow plotting graphically as seen in the ncorr generally. But, what I am really interested in is not the displacement field itself, but to extract the linear displacement from one point to another (that is, a column with the displacement data of the material, to be able to compare with the displacement delivered by the testing machine), the Ncorr_Post extension does exactly this by the name of "virtual extensometer". The problem is that when I load the data from the Ncorr and the .mat file that it generates, it gives me an error, if I load the .mat file the problem is to recognize the dimension of the array and gives the following:
Index exceeds matrix dimensions.
Error in calculateOtherQuantities (line 3)
for i = 1:plottingData(1).nFiles
Error in run (line 91)
evalin(‘caller’, strcat(script, ‘;’));
Error in ncorr_post>pushbutton9_Callback (line 527)
run calculateOtherQuantities
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ncorr_post (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ncorr_post(‘pushbutton9_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
On the other hand, when I load the data from the Ncorr, it seems that it does not communicate with it, saying the following:
Error using evalin
Undefined function or variable ‘handles_ncorr’.
Error in getNcorrData_v1_2 (line 16)
handles_ncorr = evalin(‘base’,’handles_ncorr’);
Error in run (line 91)
evalin(‘caller’, strcat(script, ‘;’));
Error in ncorr_post>pushbutton8_Callback (line 125)
run getNcorrData_v1_2
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ncorr_post (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ncorr_post(‘pushbutton8_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
I don’t know if I am using Ncorr_Post wrong, but I have already tried with all the versions, even Ncorr. The only thing that I had to do was to try other versions of matlab, but I don’t know if this will work.
I hope you can help me to solve this, I would be deeply grateful.
Greetings and thanks in advanceHello Friends,
I apologize in advance if I skip some protocol to post my problem, but I am new to matlab and the forum. After long attempts to make Ncorr_Post run, I decided to consult by this means.
To summarize, I have already processed images with the add on Ncorr, I managed to realize that even the results obtained were saved correctly, generating some workspace with the field of displacement and deformations for each image that allow plotting graphically as seen in the ncorr generally. But, what I am really interested in is not the displacement field itself, but to extract the linear displacement from one point to another (that is, a column with the displacement data of the material, to be able to compare with the displacement delivered by the testing machine), the Ncorr_Post extension does exactly this by the name of "virtual extensometer". The problem is that when I load the data from the Ncorr and the .mat file that it generates, it gives me an error, if I load the .mat file the problem is to recognize the dimension of the array and gives the following:
Index exceeds matrix dimensions.
Error in calculateOtherQuantities (line 3)
for i = 1:plottingData(1).nFiles
Error in run (line 91)
evalin(‘caller’, strcat(script, ‘;’));
Error in ncorr_post>pushbutton9_Callback (line 527)
run calculateOtherQuantities
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ncorr_post (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ncorr_post(‘pushbutton9_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
On the other hand, when I load the data from the Ncorr, it seems that it does not communicate with it, saying the following:
Error using evalin
Undefined function or variable ‘handles_ncorr’.
Error in getNcorrData_v1_2 (line 16)
handles_ncorr = evalin(‘base’,’handles_ncorr’);
Error in run (line 91)
evalin(‘caller’, strcat(script, ‘;’));
Error in ncorr_post>pushbutton8_Callback (line 125)
run getNcorrData_v1_2
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ncorr_post (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ncorr_post(‘pushbutton8_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
I don’t know if I am using Ncorr_Post wrong, but I have already tried with all the versions, even Ncorr. The only thing that I had to do was to try other versions of matlab, but I don’t know if this will work.
I hope you can help me to solve this, I would be deeply grateful.
Greetings and thanks in advance Hello Friends,
I apologize in advance if I skip some protocol to post my problem, but I am new to matlab and the forum. After long attempts to make Ncorr_Post run, I decided to consult by this means.
To summarize, I have already processed images with the add on Ncorr, I managed to realize that even the results obtained were saved correctly, generating some workspace with the field of displacement and deformations for each image that allow plotting graphically as seen in the ncorr generally. But, what I am really interested in is not the displacement field itself, but to extract the linear displacement from one point to another (that is, a column with the displacement data of the material, to be able to compare with the displacement delivered by the testing machine), the Ncorr_Post extension does exactly this by the name of "virtual extensometer". The problem is that when I load the data from the Ncorr and the .mat file that it generates, it gives me an error, if I load the .mat file the problem is to recognize the dimension of the array and gives the following:
Index exceeds matrix dimensions.
Error in calculateOtherQuantities (line 3)
for i = 1:plottingData(1).nFiles
Error in run (line 91)
evalin(‘caller’, strcat(script, ‘;’));
Error in ncorr_post>pushbutton9_Callback (line 527)
run calculateOtherQuantities
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ncorr_post (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ncorr_post(‘pushbutton9_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
On the other hand, when I load the data from the Ncorr, it seems that it does not communicate with it, saying the following:
Error using evalin
Undefined function or variable ‘handles_ncorr’.
Error in getNcorrData_v1_2 (line 16)
handles_ncorr = evalin(‘base’,’handles_ncorr’);
Error in run (line 91)
evalin(‘caller’, strcat(script, ‘;’));
Error in ncorr_post>pushbutton8_Callback (line 125)
run getNcorrData_v1_2
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ncorr_post (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ncorr_post(‘pushbutton8_Callback’,hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
I don’t know if I am using Ncorr_Post wrong, but I have already tried with all the versions, even Ncorr. The only thing that I had to do was to try other versions of matlab, but I don’t know if this will work.
I hope you can help me to solve this, I would be deeply grateful.
Greetings and thanks in advance ncorr, dic MATLAB Answers — New Questions
How to assign pair of values to a single aeeay in the matrix using two different vectors
fsine=50e6:0.4e9:3e9;
Vp=0:0.5:3;
I need to form a matrix such that columns correspons to different Vp for a single fsine.
the first column should be for fsine=50e6 for all values for Vp and second column should be fsine=50e6+0.1e9 for all values in Vp
The final vector should be have 7 rows and 8 columns.fsine=50e6:0.4e9:3e9;
Vp=0:0.5:3;
I need to form a matrix such that columns correspons to different Vp for a single fsine.
the first column should be for fsine=50e6 for all values for Vp and second column should be fsine=50e6+0.1e9 for all values in Vp
The final vector should be have 7 rows and 8 columns. fsine=50e6:0.4e9:3e9;
Vp=0:0.5:3;
I need to form a matrix such that columns correspons to different Vp for a single fsine.
the first column should be for fsine=50e6 for all values for Vp and second column should be fsine=50e6+0.1e9 for all values in Vp
The final vector should be have 7 rows and 8 columns. matrix MATLAB Answers — New Questions
Weights and Biases Not Updating in Custom MATLAB dlnetwork Training Loop
Hello MATLAB Community,
I am currently working on training a custom autoencoder network using MATLAB’s dlnetwork framework. Despite setting up a manual training loop with gradient computation and parameter updates using adamupdate, I’ve observed that the weights and biases of the network do not change between iterations. Additionally, all biases remain zero throughout training. I am using Matlab R2024a. Here are the relevant parts of my code:
trailingAvgG = [];
trailingAvgSqG = [];
trailingAvgR = [];
trailingAvgSqR = [];
miniBatchSize = 600;
learnRate = 0.01;
layers = [
sequenceInputLayer(1,MinLength = 2048)
modwtLayer(‘Level’,5,’IncludeLowpass’,false,’SelectedLevels’,2:5,"Wavelet","sym2")
flattenLayer
convolution1dLayer(128,8,Padding="same",Stride=8)
batchNormalizationLayer()
tanhLayer
maxPooling1dLayer(2,Padding="same")
convolution1dLayer(32,8,Padding="same",Stride=4)
batchNormalizationLayer
tanhLayer
maxPooling1dLayer(2,Padding="same")
transposedConv1dLayer(32,8,Cropping="same",Stride=4)
tanhLayer
transposedConv1dLayer(128,8,Cropping="same",Stride=8)
tanhLayer
bilstmLayer(8)
fullyConnectedLayer(8)
dropoutLayer(0.2)
fullyConnectedLayer(4)
dropoutLayer(0.2)
fullyConnectedLayer(1)];
net = dlnetwork(layers);
numEpochs = 200;
%dataMat = 1x2048x22275
dldata = arrayDatastore(dataMat,IterationDimension=3);
mbq = minibatchqueue(dldata,…
MiniBatchSize=miniBatchSize, …
OutputEnvironment= "cpu");
iteration = 0;
for epoch = 1:numEpochs
shuffle(mbq);
while hasdata(mbq)
iteration = iteration+1;
[XTrain] = next(mbq);
XTrain = dlarray(XTrain,"TBC"); % 1(C)x600(B)x2048(T)
[datafromRNN,lossR] = RNN_model(XTrain,net);
[gradientsR] = dlfeval(@gradientFunction,mean(lossR), net);
[net,trailingAvgR,trailingAvgSqR] = adamupdate(net,gradientsR, …
trailingAvgR,trailingAvgSqR,iteration,learnRate);
disp([‘Iteration ‘, num2str(iteration), ‘, Loss: ‘, num2str(extractdata(lossR))]);
end
end
function [gradientsR] = gradientFunction(lossR, net)
gradientsR = dlgradient(lossR, net.Learnables);
end
function [datafromRNN,loss] = RNN_model(data,net)
z = data;
[coder, last] = forward(net, z, ‘Outputs’, {‘maxpool1d_2’, ‘fc_3’});
loss = mse(last,z);
end
Questions:
Why are the weights and biases not updating, and why do the biases remain zero?
How can I ensure that the gradients computed are correct and being applied effectively?
Are there any specific settings or modifications I should consider to resolve this issue?
Any insights or suggestions would be greatly appreciated!Hello MATLAB Community,
I am currently working on training a custom autoencoder network using MATLAB’s dlnetwork framework. Despite setting up a manual training loop with gradient computation and parameter updates using adamupdate, I’ve observed that the weights and biases of the network do not change between iterations. Additionally, all biases remain zero throughout training. I am using Matlab R2024a. Here are the relevant parts of my code:
trailingAvgG = [];
trailingAvgSqG = [];
trailingAvgR = [];
trailingAvgSqR = [];
miniBatchSize = 600;
learnRate = 0.01;
layers = [
sequenceInputLayer(1,MinLength = 2048)
modwtLayer(‘Level’,5,’IncludeLowpass’,false,’SelectedLevels’,2:5,"Wavelet","sym2")
flattenLayer
convolution1dLayer(128,8,Padding="same",Stride=8)
batchNormalizationLayer()
tanhLayer
maxPooling1dLayer(2,Padding="same")
convolution1dLayer(32,8,Padding="same",Stride=4)
batchNormalizationLayer
tanhLayer
maxPooling1dLayer(2,Padding="same")
transposedConv1dLayer(32,8,Cropping="same",Stride=4)
tanhLayer
transposedConv1dLayer(128,8,Cropping="same",Stride=8)
tanhLayer
bilstmLayer(8)
fullyConnectedLayer(8)
dropoutLayer(0.2)
fullyConnectedLayer(4)
dropoutLayer(0.2)
fullyConnectedLayer(1)];
net = dlnetwork(layers);
numEpochs = 200;
%dataMat = 1x2048x22275
dldata = arrayDatastore(dataMat,IterationDimension=3);
mbq = minibatchqueue(dldata,…
MiniBatchSize=miniBatchSize, …
OutputEnvironment= "cpu");
iteration = 0;
for epoch = 1:numEpochs
shuffle(mbq);
while hasdata(mbq)
iteration = iteration+1;
[XTrain] = next(mbq);
XTrain = dlarray(XTrain,"TBC"); % 1(C)x600(B)x2048(T)
[datafromRNN,lossR] = RNN_model(XTrain,net);
[gradientsR] = dlfeval(@gradientFunction,mean(lossR), net);
[net,trailingAvgR,trailingAvgSqR] = adamupdate(net,gradientsR, …
trailingAvgR,trailingAvgSqR,iteration,learnRate);
disp([‘Iteration ‘, num2str(iteration), ‘, Loss: ‘, num2str(extractdata(lossR))]);
end
end
function [gradientsR] = gradientFunction(lossR, net)
gradientsR = dlgradient(lossR, net.Learnables);
end
function [datafromRNN,loss] = RNN_model(data,net)
z = data;
[coder, last] = forward(net, z, ‘Outputs’, {‘maxpool1d_2’, ‘fc_3’});
loss = mse(last,z);
end
Questions:
Why are the weights and biases not updating, and why do the biases remain zero?
How can I ensure that the gradients computed are correct and being applied effectively?
Are there any specific settings or modifications I should consider to resolve this issue?
Any insights or suggestions would be greatly appreciated! Hello MATLAB Community,
I am currently working on training a custom autoencoder network using MATLAB’s dlnetwork framework. Despite setting up a manual training loop with gradient computation and parameter updates using adamupdate, I’ve observed that the weights and biases of the network do not change between iterations. Additionally, all biases remain zero throughout training. I am using Matlab R2024a. Here are the relevant parts of my code:
trailingAvgG = [];
trailingAvgSqG = [];
trailingAvgR = [];
trailingAvgSqR = [];
miniBatchSize = 600;
learnRate = 0.01;
layers = [
sequenceInputLayer(1,MinLength = 2048)
modwtLayer(‘Level’,5,’IncludeLowpass’,false,’SelectedLevels’,2:5,"Wavelet","sym2")
flattenLayer
convolution1dLayer(128,8,Padding="same",Stride=8)
batchNormalizationLayer()
tanhLayer
maxPooling1dLayer(2,Padding="same")
convolution1dLayer(32,8,Padding="same",Stride=4)
batchNormalizationLayer
tanhLayer
maxPooling1dLayer(2,Padding="same")
transposedConv1dLayer(32,8,Cropping="same",Stride=4)
tanhLayer
transposedConv1dLayer(128,8,Cropping="same",Stride=8)
tanhLayer
bilstmLayer(8)
fullyConnectedLayer(8)
dropoutLayer(0.2)
fullyConnectedLayer(4)
dropoutLayer(0.2)
fullyConnectedLayer(1)];
net = dlnetwork(layers);
numEpochs = 200;
%dataMat = 1x2048x22275
dldata = arrayDatastore(dataMat,IterationDimension=3);
mbq = minibatchqueue(dldata,…
MiniBatchSize=miniBatchSize, …
OutputEnvironment= "cpu");
iteration = 0;
for epoch = 1:numEpochs
shuffle(mbq);
while hasdata(mbq)
iteration = iteration+1;
[XTrain] = next(mbq);
XTrain = dlarray(XTrain,"TBC"); % 1(C)x600(B)x2048(T)
[datafromRNN,lossR] = RNN_model(XTrain,net);
[gradientsR] = dlfeval(@gradientFunction,mean(lossR), net);
[net,trailingAvgR,trailingAvgSqR] = adamupdate(net,gradientsR, …
trailingAvgR,trailingAvgSqR,iteration,learnRate);
disp([‘Iteration ‘, num2str(iteration), ‘, Loss: ‘, num2str(extractdata(lossR))]);
end
end
function [gradientsR] = gradientFunction(lossR, net)
gradientsR = dlgradient(lossR, net.Learnables);
end
function [datafromRNN,loss] = RNN_model(data,net)
z = data;
[coder, last] = forward(net, z, ‘Outputs’, {‘maxpool1d_2’, ‘fc_3’});
loss = mse(last,z);
end
Questions:
Why are the weights and biases not updating, and why do the biases remain zero?
How can I ensure that the gradients computed are correct and being applied effectively?
Are there any specific settings or modifications I should consider to resolve this issue?
Any insights or suggestions would be greatly appreciated! deep learning, machine learning MATLAB Answers — New Questions
How To Remove Copilot Preview?
Well I updated my system to 23H2 and Copilot Preview keeps appearing now on my taskbar. Even after removing the icon it keeps returning.
Now from what I can tell Copilot is not running but it is in Program FileWindowsApps which I cannot access or change permissions. Now my question is, can I delete all to Copilot files because it dose not show up in any of my uninstallers. I know if I delete them I most likely will f^#* myself over. Or do I have to revert back to 22H2? I found all the files using Everything. Here’s a pic of some of the files.
Well I updated my system to 23H2 and Copilot Preview keeps appearing now on my taskbar. Even after removing the icon it keeps returning. Now from what I can tell Copilot is not running but it is in Program FileWindowsApps which I cannot access or change permissions. Now my question is, can I delete all to Copilot files because it dose not show up in any of my uninstallers. I know if I delete them I most likely will f^#* myself over. Or do I have to revert back to 22H2? I found all the files using Everything. Here’s a pic of some of the files. Read More
How to delete an undeletable file?
My computer is running Windows 11 23H2 and I’ve got a file created by 7Zip located in C:Temp (my C: drive is a Samsung 990 Pro SSD) where 7Zip crashed during the process of zipping files and now that file appears to be unable to be deleted. With Explorer run as administrator the file appears in the C:Temp directory however when I attempt to delete it I get the message “Could not find this item” and “This is no longer located in C:Temp. Verify the items location and try again”. I’ve tried starting in safe mode with the same results, the file appears in File Explorer or in a command prompt using a dir command but attempts to delete it always come back with “The file is no longer located in etc etc”. I’ve tried running “chkdsk /f” on my C: drive and then retrying both safe mode and normal startup and I can’t delete that file (it’s the only file in the directory) and I can’t delete or rename the C:Temp directory itself so how can I fix this problem?
My computer is running Windows 11 23H2 and I’ve got a file created by 7Zip located in C:Temp (my C: drive is a Samsung 990 Pro SSD) where 7Zip crashed during the process of zipping files and now that file appears to be unable to be deleted. With Explorer run as administrator the file appears in the C:Temp directory however when I attempt to delete it I get the message “Could not find this item” and “This is no longer located in C:Temp. Verify the items location and try again”. I’ve tried starting in safe mode with the same results, the file appears in File Explorer or in a command prompt using a dir command but attempts to delete it always come back with “The file is no longer located in etc etc”. I’ve tried running “chkdsk /f” on my C: drive and then retrying both safe mode and normal startup and I can’t delete that file (it’s the only file in the directory) and I can’t delete or rename the C:Temp directory itself so how can I fix this problem? Read More
How to permanently Remove “Learn about this picture” Icon on Desktop?
Whenever I start my computer, this app disrupts my wallpapers. Right-clicking it doesn’t show the usual options like deleting, and dragging it to the recycle bin does nothing. It’s also not visible in my desktop files. How can I remove this application?
Whenever I start my computer, this app disrupts my wallpapers. Right-clicking it doesn’t show the usual options like deleting, and dragging it to the recycle bin does nothing. It’s also not visible in my desktop files. How can I remove this application? Read More
盛世集团旗下公司开户业务
盛世集团旗下公司开户184-8835-2793.业务迎来了新的发展机遇。随着公司业务规模的不断扩大,盛世集团决定对旗下公司的开户业务进行全面升级,以提升客户体验和服务质量。
首先,盛世集团将引入更先进的开户系统和技术,以提高办理开户业务的效率和便利性。客户将可以通过在线申请、预约办理等方式,更快速地完成开户手续。同时,公司将加强对客户资料的保护和隐私安全措施,保障客户信息的安全。
其次,盛世集团还将加大对员工的培训力度,提升他们的专业水平和素质能力。公司将建立更加完善的培训体系,为员工提供更全面的业务知识和技能培训,使他们能够更好地为客户提供个性化的开户服务。
另外,盛世集团将加强与金融机构的合作与沟通,提高开户业务的效率和质量。公司将优化开户流程,简化手续办理,缩短办理时间,提高客户的满意度和体验感受。
通过这些措施的实施,盛世集团相信公司的开户业务将会迎来新的发展机遇,为客户提供更加便捷、高效、安全的开户服务,为公司的发展注入新的活力。
盛世集团旗下公司开户184-8835-2793.业务迎来了新的发展机遇。随着公司业务规模的不断扩大,盛世集团决定对旗下公司的开户业务进行全面升级,以提升客户体验和服务质量。首先,盛世集团将引入更先进的开户系统和技术,以提高办理开户业务的效率和便利性。客户将可以通过在线申请、预约办理等方式,更快速地完成开户手续。同时,公司将加强对客户资料的保护和隐私安全措施,保障客户信息的安全。其次,盛世集团还将加大对员工的培训力度,提升他们的专业水平和素质能力。公司将建立更加完善的培训体系,为员工提供更全面的业务知识和技能培训,使他们能够更好地为客户提供个性化的开户服务。另外,盛世集团将加强与金融机构的合作与沟通,提高开户业务的效率和质量。公司将优化开户流程,简化手续办理,缩短办理时间,提高客户的满意度和体验感受。通过这些措施的实施,盛世集团相信公司的开户业务将会迎来新的发展机遇,为客户提供更加便捷、高效、安全的开户服务,为公司的发展注入新的活力。 Read More
Intune – disable Windows Hello
I have a goal:
1. Disable Windows Hello for Business without impacting current users on EntraID via Intune,
2. Configure password sync on the Okta site and Entra ID and MDM device
What could be the way to disable PIN (for onboarded devices) and switch only to a password on endpoints? the password must be synchronized with Okta in both directions.
Thank you,
I have a goal: 1. Disable Windows Hello for Business without impacting current users on EntraID via Intune,2. Configure password sync on the Okta site and Entra ID and MDM deviceWhat could be the way to disable PIN (for onboarded devices) and switch only to a password on endpoints? the password must be synchronized with Okta in both directions.Thank you, Read More
Saving code as image
I have coded a program in Matlab editor, but now i need to add it as an image in my word document. Pls tell me how to do it.I have coded a program in Matlab editor, but now i need to add it as an image in my word document. Pls tell me how to do it. I have coded a program in Matlab editor, but now i need to add it as an image in my word document. Pls tell me how to do it. saving MATLAB Answers — New Questions
This error message was encountered while using the GeoPIV RG software to calculate the particle displacement.
Error using dataread
Trouble reading floating point number from file (row 1, field 2) ==>
Error in textread (line 171)
[varargout{1:nlhs}]=dataread(‘file’,varargin{:}); %#ok<REMFF1>
Error in geoPIV_RG_runError using dataread
Trouble reading floating point number from file (row 1, field 2) ==>
Error in textread (line 171)
[varargout{1:nlhs}]=dataread(‘file’,varargin{:}); %#ok<REMFF1>
Error in geoPIV_RG_run Error using dataread
Trouble reading floating point number from file (row 1, field 2) ==>
Error in textread (line 171)
[varargout{1:nlhs}]=dataread(‘file’,varargin{:}); %#ok<REMFF1>
Error in geoPIV_RG_run geopiv rg, particle displacement MATLAB Answers — New Questions
iterate over a vector in a for loop
I am trying to loop through a matrix – my model has no problem looping through the bandwidths "bw" but i get an error when looping through the priors, because prior has vectors of values
the input of prior works in the format when not using a for loop…
prior = [0.427,0.226,0.347];
but i want the model to run through 3 different types of prior probabilities, as below
the error i get is: Error using classreg.learning.classif.FullClassificationModel.processPrior (line 264)
Prior probabilities must be a vector of length 3.
when i print prior i get
priors =
0.3300 0.3300 0.3300
0.4270 0.2260 0.3470
0.2000 0.2000 0.6000
bandwidths = [0.2, 0.5, 1];
priors = [0.33 0.33 0.33; 0.427 0.226 0.347; 0.2 0.2 0.6];
global mymatrix
for f=1:length(bandwidths);
for l=1:length(priors);
bw= bandwidths(f);
p = priors(l)
Mdl = fitcnb(x_train_crossval,y_labels_train_crossval,’ClassNames’, class_names,’PredictorNames’,predictor_names,’Prior’,p,’Width’,bw);I am trying to loop through a matrix – my model has no problem looping through the bandwidths "bw" but i get an error when looping through the priors, because prior has vectors of values
the input of prior works in the format when not using a for loop…
prior = [0.427,0.226,0.347];
but i want the model to run through 3 different types of prior probabilities, as below
the error i get is: Error using classreg.learning.classif.FullClassificationModel.processPrior (line 264)
Prior probabilities must be a vector of length 3.
when i print prior i get
priors =
0.3300 0.3300 0.3300
0.4270 0.2260 0.3470
0.2000 0.2000 0.6000
bandwidths = [0.2, 0.5, 1];
priors = [0.33 0.33 0.33; 0.427 0.226 0.347; 0.2 0.2 0.6];
global mymatrix
for f=1:length(bandwidths);
for l=1:length(priors);
bw= bandwidths(f);
p = priors(l)
Mdl = fitcnb(x_train_crossval,y_labels_train_crossval,’ClassNames’, class_names,’PredictorNames’,predictor_names,’Prior’,p,’Width’,bw); I am trying to loop through a matrix – my model has no problem looping through the bandwidths "bw" but i get an error when looping through the priors, because prior has vectors of values
the input of prior works in the format when not using a for loop…
prior = [0.427,0.226,0.347];
but i want the model to run through 3 different types of prior probabilities, as below
the error i get is: Error using classreg.learning.classif.FullClassificationModel.processPrior (line 264)
Prior probabilities must be a vector of length 3.
when i print prior i get
priors =
0.3300 0.3300 0.3300
0.4270 0.2260 0.3470
0.2000 0.2000 0.6000
bandwidths = [0.2, 0.5, 1];
priors = [0.33 0.33 0.33; 0.427 0.226 0.347; 0.2 0.2 0.6];
global mymatrix
for f=1:length(bandwidths);
for l=1:length(priors);
bw= bandwidths(f);
p = priors(l)
Mdl = fitcnb(x_train_crossval,y_labels_train_crossval,’ClassNames’, class_names,’PredictorNames’,predictor_names,’Prior’,p,’Width’,bw); forloop, iterate MATLAB Answers — New Questions
Export In Place archive mail
Hi,
I have an Exchange online archive for exchange online license added to one of our users (In Place archive mailboxes) where one user has resigned. I was also required to export all emails including in place archive mailbox on that user. I did the content search and export. But in Place archive mails was not there. What is the method which I am able to export.
Hi, I have an Exchange online archive for exchange online license added to one of our users (In Place archive mailboxes) where one user has resigned. I was also required to export all emails including in place archive mailbox on that user. I did the content search and export. But in Place archive mails was not there. What is the method which I am able to export. Read More
Como obtener la función de transferencia en controles
Cuál es la instrucción para obtener la función de transferenciaCuál es la instrucción para obtener la función de transferencia Cuál es la instrucción para obtener la función de transferencia instrucción MATLAB Answers — New Questions
Is there any limitation on Patch requests on Azure Application Gateway?
I have an Azure Application Gateway (WAF mode is detection) and a web application in the backend in my edge network. Everything works well, but I have an issue with a “Patch” request. When I sent this request I received: 400 Bad RequestMicrosoft-Azure-Application-Gateway/v2 I didn’t have this issue in another environment without Azure Application Gateway (WAF mode detection). I wanna know if there is any limitation on the Patch request. Read More