Community Profile

photo

Ben

Last seen: 5 days ago Active since 2022

Programming Languages:
Python, MATLAB
Spoken Languages:
English

Statistics

  • 6 Month Streak
  • Knowledgeable Level 3
  • First Answer

View badges

Content Feed

View by

Answered
Data pre-processing function in ANN model
Are you using the Deep Learning Toolbox tools such as DAGNetwork, dlnetwork, trainNetwork and/or custom training loops? In that ...

5 days ago | 0

| accepted

Answered
can i implement lstm layer from scratch using matlab in sequence to sequence regression
Sure, I think the best way to do this would be with a custom layer, you can follow this example that implements a modified LSTM ...

5 days ago | 0

Answered
Unable to resolve the name 'helper.downloadSCNNLaneDetection'.
I believe you need to do the following 1. clone or download https://github.com/matlab-deep-learning/pretrained-spatial-CNN into...

6 days ago | 0

Answered
Problem while usinge UNET
The response size is the size of the target data. I see this error when trying to train a regression network and the network's o...

7 days ago | 0

Answered
How to resolve "Unable to determine if experiment is for classification or regression because setup function returned invalid outputs"?
I think the issue is that the 2nd returned output of BayesOptExperiment_setup2 needs to be the layer array or layerGraph object ...

7 days ago | 0

Answered
Generate Text with Deep Learning "Invalid training data. Labels must not contain undefined values" ERROR
There are a few issues to fix this: The call to Y = categorical(charactersShifted) needs to include a valueset that includes al...

8 days ago | 1

Answered
Training neural network to solve non-linear equation with multiple input
Hi Fahad, You are getting the unconnect layers error for the following reason. When you define fnc=@(x1,x2) (x1 + x2).^2 it is...

2 months ago | 0

Answered
Resampling a Data Array for LSTM Training
Hi Patrick, In principle I think you can use Signal Processing resample - however you may want to verify this resample behaves ...

3 months ago | 0

| accepted

Answered
Physics-informed NN for parameter identification
Hi Dawei, The PINN in that example is assuming the PDE has fixed coefficients. To follow the method of Raissi et al. you can co...

3 months ago | 0

Answered
how to Train Network on Image and Feature Data with more then one feature input?
The subtle issue here is that the feature data needs to read out of the datastore as a NumFeatures x 1 vector as documented here...

5 months ago | 1

| accepted

Answered
Deep Learning Datastores causing errors with size/length
I think the issue here is just wrangling the datastore-s to read out a BatchSize x 2 cell array, where each cell in the first co...

5 months ago | 0

| accepted

Answered
minibatchqueue without shuffling by default
I think you need to use IterationDimension=2 to read out [0, ..., 0.2] in one mini-batch: ads=arrayDatastore(linspace(0,2,1000)...

5 months ago | 0

| accepted

Answered
Why is the data missing when I use Deep Network Designer for training?Please heip.
I typically see this error when the data was on the GPU but that data has since been lost from the GPU. For example you can rep...

6 months ago | 0

Answered
An error when run Unet Model Deep learning
You should set the number of filters on the final convolution layer to match the number of pixel classes for your problem. Tt lo...

6 months ago | 0

| accepted

Answered
Is there a way to train a network giving inputs one by one in MATLAB?
One thing that is changing for sure is the parameters for the ADAM optimizer. For example if you look at adamupdate (doc page), ...

6 months ago | 1

| accepted

Answered
Error using trainNetwork (line 184) Invalid network. Caused by: Layer 4: The size of the pooling dimension of the padded input data must be larger than or equal to the pool si
The issue is that the 2nd layer convolution1dLayer(3,10) has no padding. Currently its input size is [3, 5723, ?] where 3 is n_f...

6 months ago | 0

| accepted

Answered
My simple numerical Deep Learning project will not train. Get "invalid training data" message.
I think the issue here is you need to permute the data to NumFeatures x BatchSize for featureInputLayer when working with trainN...

6 months ago | 0

Answered
Size of the input layer is different from the expected input size
You're trying to concatenate the output of "gru_2" with the output of "fc_4". However "gru_2" outputs sequence data, and "fc_4" ...

6 months ago | 1

| accepted

Answered
dlgradients algorithm in deep learning
We are using the reverse mode automatic differentiaton documented here: https://www.mathworks.com/help/deeplearning/ug/deep-le...

6 months ago | 0

| accepted

Answered
How can I load 2 features XTrain and YTrain to SequenceInputyer in Deep learning toolbox?
Using "OutputType" as "cell" should help this - e.g. you can do the following at the command line: % Create fake data, % I am...

6 months ago | 0

Answered
Neural ODE for dynamic systems with input signals
Hi Bowei, You should be able to create a new ODE function that has only three inputs as required. Let me show a few cases. Cas...

10 months ago | 1

| accepted