Community Profile

photo

Srivardhan Gadila


Last seen: Today

MathWorks

232 total contributions since 2019

I am an Application Support Engineer at MathWorks.
Disclaimer : Any advice or opinions here are my own, and in no way reflect that of MathWorks.

Srivardhan Gadila's Badges

  • 6 Month Streak
  • Knowledgeable Level 3
  • Revival Level 2
  • First Answer

View details...

Contributions in
View by

Answered
For Loop Related Question
Based on the above information, one possible way is to make use of struct as follows: groupNames = ["Pre_HTO", "Post_HTO"]; ...

15 days ago | 0

| accepted

Answered
Multi-Input CNN for image classification
In order to train Multiple input networks you have to use a datastore & After referring to Input Arguments & ds of trainNetwork,...

16 days ago | 0

Answered
how have you appended the two channel data in this example?
As per my understanding after seeing the example Waveform Segmentation Using Deep Learning and cheking the modified dataset and ...

16 days ago | 0

Answered
How do I substitute all the activation functions of a neural network?
I would suggest you to try training the network on the cpu. It may be possible that the gpu memory is not sufficient for trainin...

16 days ago | 0

Answered
Index in position 3 exceeds array bounds (must not exceed 28).
ts(i,:)=ts(i,:)+squeeze(img(x(v),y(v),z(v),:))'; % this line is error I think the error is caused because the value of z(v...

17 days ago | 0

Answered
Can we only train the classification layer when do transfer learning of a pre-trained network?
In order to freeze the weights of a particular layer of your network set the properties WeightLearnRateFactor & BiasLearnRateFac...

17 days ago | 0

| accepted

Answered
How to loop the If statement for the following Maple code in MATLAB?
Refer to end & if, elseif, else.

17 days ago | 0

| accepted

Answered
why fileDatastore does not shuffle
As of MATLAB R2020a the fileDatastore doesn't support the function shuffle. This is a known issue and the mentioned functionalit...

17 days ago | 0

Answered
Circle buffer for images from webcam
You can refer to the Insert elements into a 4D array MATLAB Answer which might help you to get started on your implementation. T...

19 days ago | 0

Answered
"Index in position 2 exceeds array bounds (must not exceed 1)" with machine learning
As per my understanding after referring to train - Input Arguments & preparets, I think the network inputs & targets must be a c...

19 days ago | 0

Answered
Cell from Unint8 Conversion error
Refer to Access Data in Cell Array. In the above code, index the Cell Array with with Curly Braces, {} & not Smooth Parentheses...

19 days ago | 0

| accepted

Answered
How to reduce computation time in a code with multiple nested loops and if statements
Vectorized code often runs much faster than the corresponding code containing loops (Vectorization). In addition to that I wou...

20 days ago | 0

Answered
How can I increase the text size of the MATLAB help documentation with a Swiss keyboard on Macbook?
In Windows the combination "Ctrl" + "Shift" + "=" works, may be you can try "Ctrl" + "Shift + 1". Or you can refer to Customiz...

20 days ago | 0

Answered
Is there a way to select specific images for the training dataset of a convolutional neural net ?
You can refer to Datastores for Deep Learning, subset, splitEachLabel & Datastore

20 days ago | 0

| accepted

Answered
How to do transfer learning with multi-channel EEG data with Googlenet?
You can copy the layerGraph of the pretrained network and change the imageInputLayer, the first convolutionLayer to match the in...

21 days ago | 0

Answered
ResNet50 on multi-spectral image segmentation
You can copy the layerGraph of the pretrained network and change the imageInputLayer, the first convolutionLayer to match the in...

21 days ago | 0

| accepted

Answered
How the feature outputs of 4 different CNN models be combined
W.r.t the implementation you can refer to Multiple-Input and Multiple-Output Networks. You can use any of the Combination Laye...

2 months ago | 0

Answered
Adding additional inputs with corresponding output into the neural network as the auxiliary input
You can refer to Multiple-Input and Multiple-Output Networks and create and deep neural network with inputLayer as imageInputLay...

2 months ago | 0

Answered
What's are the parameters in detect() function?
Refer to the MiniBatchSize input argument explanation of the detect documentation. Minimum batch size, specified as the comma-s...

2 months ago | 0

| accepted

Answered
Out of memory on device using accumarray
Refer to documentation of reset. Try the following code to verify the usage of reset function: g = gpuDevice(1) M = gpuArray(...

2 months ago | 0

Answered
Use Matlabfunction in simulink function block
Refer to the following resources: Storing Data Using Data Store Memory Blocks Arguments and Units in MATLAB Function Block Ad...

2 months ago | 0

Answered
Keras 2.3.1 models
As per my knowledge the "Deep Learning Toolbox Importer for Keras Models support package" installed from Add-On Explorer support...

2 months ago | 0

Answered
Creating a Datastore from either two Datastores, or a number of files populated in different folders.
As per my understanding I'm listing the two ways of comibing the datastores dsL & dsR: %First one imdsCombined = combine(imdsd...

2 months ago | 1

| accepted

Answered
What activation function does fullyConnectedLayer uses?
As mentioned by @Mohammad Sami, In order for an activation function after fullyConnectedLayer, you have to include an activation...

2 months ago | 0

Answered
Make axis line invisible but not tick labels
As per my knowledge w.r.t current documentation, I think there is no way to make borders dissapear along all the sides with tick...

2 months ago | 0

Answered
save a fprintf as text data
You can refer to fprintf documentation, it's Examples & fileID = fopen(filename,permission) fileID = fopen('textFile.txt','w');...

2 months ago | 0

Answered
Why test, train and validation performance are so different from global performance in my neural network?
As per my knowledge, the way you are calculating the trainPerformance, valPerformance & testPerformance may not be correct. Inst...

2 months ago | 0

| accepted

Answered
How to "prune" a one hidden layer NN such that the off diagonal elements of the weights, that is, "net.IW{1}" and "net.LW{2}", are zeros?
As per my knowledge w.r.t shallow nerual networks you cannot freeze non-diagonal weights & make the diagonal wieghts only to upd...

2 months ago | 1

Answered
Data augmentation in CNN
The following are few suggestions: Make sure that all the classes have equal number of observations. Check how trainNetwork us...

2 months ago | 0

| accepted

Answered
How to compute lognormal distribution
You can try something like below: format long g folder = 'BCC_CSM.xlsx'; file = xlsread(folder); dt = datetime([file(:,1:3...

2 months ago | 0

| accepted

Load more