Matlab deep learning regressionMatlab: specify Neural Net with no hidden layer using built in functionsHow to train a network to learn a function using MatConvNet?Why can't my CNN learn?tensorflow deep neural network for regression always predict same results in one batchRecurrent Neural Network Mini-Batch dependency after trainedDeep multi-task learning with missing labelsDeep neural network not learningnan in numpy dot productWhat is the difference between sequence-to-sequence and sequence-to-one regression in LSTM networks?
Forgetting the musical notes while performing in concert
What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?
How can I make my BBEG immortal short of making them a Lich or Vampire?
Arrow those variables!
What mechanic is there to disable a threat instead of killing it?
Why does Kotter return in Welcome Back Kotter
Why is the ratio of two extensive quantities always intensive?
What killed these X2 caps?
How to show the equivalence between the regularized regression and their constraint formulas using KKT
AES: Why is it a good practice to use only the first 16bytes of a hash for encryption?
Where does SFDX store details about scratch orgs?
Cronab fails because shell path not found
Why are electrically insulating heatsinks so rare? Is it just cost?
How to model explosives?
Could gravitational lensing be used to protect a spaceship from a laser?
Facing a paradox: Earnshaw's theorem in one dimension
I Accidentally Deleted a Stock Terminal Theme
Is it possible to download Internet Explorer on my Mac running OS X El Capitan?
Fully-Firstable Anagram Sets
Can one be a co-translator of a book, if he does not know the language that the book is translated into?
Did Shadowfax go to Valinor?
How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?
Is "remove commented out code" correct English?
How do I write bicross product symbols in latex?
Matlab deep learning regression
Matlab: specify Neural Net with no hidden layer using built in functionsHow to train a network to learn a function using MatConvNet?Why can't my CNN learn?tensorflow deep neural network for regression always predict same results in one batchRecurrent Neural Network Mini-Batch dependency after trainedDeep multi-task learning with missing labelsDeep neural network not learningnan in numpy dot productWhat is the difference between sequence-to-sequence and sequence-to-one regression in LSTM networks?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm trying to build my own regression network using Matlab. Although what I've got so far looks a bit pointless, I do want to expand it later into a slightly unusual network so I am doing it myself rather than getting something off the shelf.
I've written the following code:
% splitinto dev, val and test sets
[train_idxs,val_idxs,test_idxs] = dividerand(size(X,2));
training_X = X( : , train_idxs );
training_Y = Y( : , train_idxs );
val_X = X( : , val_idxs );
val_Y = Y( : , val_idxs );
test_X = X( : , test_idxs );
test_Y = Y( : , test_idxs );
input_count = size( training_X , 1 );
output_count = size( training_Y , 1 );
layers = [ ...
sequenceInputLayer(input_count)
fullyConnectedLayer(16)
reluLayer
fullyConnectedLayer(8)
reluLayer
fullyConnectedLayer(4)
reluLayer
fullyConnectedLayer(output_count)
regressionLayer
];
options = trainingOptions('sgdm', ...
'MaxEpochs',8, ...
'MiniBatchSize', 1000 , ...
'ValidationData',val_X,val_Y, ...
'ValidationFrequency',30, ...
'ValidationPatience',5, ...
'Verbose',true, ...
'Plots','training-progress');
size( training_X )
size( training_Y )
size( val_X )
size( val_Y )
layers
net = trainNetwork(training_X,training_Y,layers,options);
view( net );
pred_Y = predict(net,test_X)
I can't share what X and Y actually are, but the input X is a 3xn double array and the output is Y is a 2xn array which originally came from a Matlab table.
Here is the output:
ans =
3 547993
ans =
2 547993
ans =
3 117427
ans =
2 117427
layers =
9x1 Layer array with layers:
1 '' Sequence Input Sequence input with 3 dimensions
2 '' Fully Connected 16 fully connected layer
3 '' ReLU ReLU
4 '' Fully Connected 8 fully connected layer
5 '' ReLU ReLU
6 '' Fully Connected 4 fully connected layer
7 '' ReLU ReLU
8 '' Fully Connected 2 fully connected layer
9 '' Regression Output mean-squared-error
Training on single CPU.
|======================================================================================================================|
| Epoch | Iteration | Time Elapsed | Mini-batch | Validation | Mini-batch | Validation | Base Learning |
| | | (hh:mm:ss) | RMSE | RMSE | Loss | Loss | Rate |
|======================================================================================================================|
| 1 | 1 | 00:00:02 | 0.88 | 4509.94 | 0.3911 | 1.0170e+07 | 0.0100 |
| 8 | 8 | 00:00:04 | NaN | NaN | NaN | NaN | 0.0100 |
|======================================================================================================================|
Error using view (line 73)
Invalid input arguments
Error in layer (line 85)
view( net );
Clearly something pathological is happening, since the training is almost instantaneous and I can't view the resulting network. Can anyone advise me what I am doing wrong ? Or perhaps give some debugging tips ?
Thanks,
Adam.
matlab neural-network deep-learning regression
add a comment |
I'm trying to build my own regression network using Matlab. Although what I've got so far looks a bit pointless, I do want to expand it later into a slightly unusual network so I am doing it myself rather than getting something off the shelf.
I've written the following code:
% splitinto dev, val and test sets
[train_idxs,val_idxs,test_idxs] = dividerand(size(X,2));
training_X = X( : , train_idxs );
training_Y = Y( : , train_idxs );
val_X = X( : , val_idxs );
val_Y = Y( : , val_idxs );
test_X = X( : , test_idxs );
test_Y = Y( : , test_idxs );
input_count = size( training_X , 1 );
output_count = size( training_Y , 1 );
layers = [ ...
sequenceInputLayer(input_count)
fullyConnectedLayer(16)
reluLayer
fullyConnectedLayer(8)
reluLayer
fullyConnectedLayer(4)
reluLayer
fullyConnectedLayer(output_count)
regressionLayer
];
options = trainingOptions('sgdm', ...
'MaxEpochs',8, ...
'MiniBatchSize', 1000 , ...
'ValidationData',val_X,val_Y, ...
'ValidationFrequency',30, ...
'ValidationPatience',5, ...
'Verbose',true, ...
'Plots','training-progress');
size( training_X )
size( training_Y )
size( val_X )
size( val_Y )
layers
net = trainNetwork(training_X,training_Y,layers,options);
view( net );
pred_Y = predict(net,test_X)
I can't share what X and Y actually are, but the input X is a 3xn double array and the output is Y is a 2xn array which originally came from a Matlab table.
Here is the output:
ans =
3 547993
ans =
2 547993
ans =
3 117427
ans =
2 117427
layers =
9x1 Layer array with layers:
1 '' Sequence Input Sequence input with 3 dimensions
2 '' Fully Connected 16 fully connected layer
3 '' ReLU ReLU
4 '' Fully Connected 8 fully connected layer
5 '' ReLU ReLU
6 '' Fully Connected 4 fully connected layer
7 '' ReLU ReLU
8 '' Fully Connected 2 fully connected layer
9 '' Regression Output mean-squared-error
Training on single CPU.
|======================================================================================================================|
| Epoch | Iteration | Time Elapsed | Mini-batch | Validation | Mini-batch | Validation | Base Learning |
| | | (hh:mm:ss) | RMSE | RMSE | Loss | Loss | Rate |
|======================================================================================================================|
| 1 | 1 | 00:00:02 | 0.88 | 4509.94 | 0.3911 | 1.0170e+07 | 0.0100 |
| 8 | 8 | 00:00:04 | NaN | NaN | NaN | NaN | 0.0100 |
|======================================================================================================================|
Error using view (line 73)
Invalid input arguments
Error in layer (line 85)
view( net );
Clearly something pathological is happening, since the training is almost instantaneous and I can't view the resulting network. Can anyone advise me what I am doing wrong ? Or perhaps give some debugging tips ?
Thanks,
Adam.
matlab neural-network deep-learning regression
Thanks for sorting out the output formatting !
– Adam Rose
Mar 23 at 19:14
add a comment |
I'm trying to build my own regression network using Matlab. Although what I've got so far looks a bit pointless, I do want to expand it later into a slightly unusual network so I am doing it myself rather than getting something off the shelf.
I've written the following code:
% splitinto dev, val and test sets
[train_idxs,val_idxs,test_idxs] = dividerand(size(X,2));
training_X = X( : , train_idxs );
training_Y = Y( : , train_idxs );
val_X = X( : , val_idxs );
val_Y = Y( : , val_idxs );
test_X = X( : , test_idxs );
test_Y = Y( : , test_idxs );
input_count = size( training_X , 1 );
output_count = size( training_Y , 1 );
layers = [ ...
sequenceInputLayer(input_count)
fullyConnectedLayer(16)
reluLayer
fullyConnectedLayer(8)
reluLayer
fullyConnectedLayer(4)
reluLayer
fullyConnectedLayer(output_count)
regressionLayer
];
options = trainingOptions('sgdm', ...
'MaxEpochs',8, ...
'MiniBatchSize', 1000 , ...
'ValidationData',val_X,val_Y, ...
'ValidationFrequency',30, ...
'ValidationPatience',5, ...
'Verbose',true, ...
'Plots','training-progress');
size( training_X )
size( training_Y )
size( val_X )
size( val_Y )
layers
net = trainNetwork(training_X,training_Y,layers,options);
view( net );
pred_Y = predict(net,test_X)
I can't share what X and Y actually are, but the input X is a 3xn double array and the output is Y is a 2xn array which originally came from a Matlab table.
Here is the output:
ans =
3 547993
ans =
2 547993
ans =
3 117427
ans =
2 117427
layers =
9x1 Layer array with layers:
1 '' Sequence Input Sequence input with 3 dimensions
2 '' Fully Connected 16 fully connected layer
3 '' ReLU ReLU
4 '' Fully Connected 8 fully connected layer
5 '' ReLU ReLU
6 '' Fully Connected 4 fully connected layer
7 '' ReLU ReLU
8 '' Fully Connected 2 fully connected layer
9 '' Regression Output mean-squared-error
Training on single CPU.
|======================================================================================================================|
| Epoch | Iteration | Time Elapsed | Mini-batch | Validation | Mini-batch | Validation | Base Learning |
| | | (hh:mm:ss) | RMSE | RMSE | Loss | Loss | Rate |
|======================================================================================================================|
| 1 | 1 | 00:00:02 | 0.88 | 4509.94 | 0.3911 | 1.0170e+07 | 0.0100 |
| 8 | 8 | 00:00:04 | NaN | NaN | NaN | NaN | 0.0100 |
|======================================================================================================================|
Error using view (line 73)
Invalid input arguments
Error in layer (line 85)
view( net );
Clearly something pathological is happening, since the training is almost instantaneous and I can't view the resulting network. Can anyone advise me what I am doing wrong ? Or perhaps give some debugging tips ?
Thanks,
Adam.
matlab neural-network deep-learning regression
I'm trying to build my own regression network using Matlab. Although what I've got so far looks a bit pointless, I do want to expand it later into a slightly unusual network so I am doing it myself rather than getting something off the shelf.
I've written the following code:
% splitinto dev, val and test sets
[train_idxs,val_idxs,test_idxs] = dividerand(size(X,2));
training_X = X( : , train_idxs );
training_Y = Y( : , train_idxs );
val_X = X( : , val_idxs );
val_Y = Y( : , val_idxs );
test_X = X( : , test_idxs );
test_Y = Y( : , test_idxs );
input_count = size( training_X , 1 );
output_count = size( training_Y , 1 );
layers = [ ...
sequenceInputLayer(input_count)
fullyConnectedLayer(16)
reluLayer
fullyConnectedLayer(8)
reluLayer
fullyConnectedLayer(4)
reluLayer
fullyConnectedLayer(output_count)
regressionLayer
];
options = trainingOptions('sgdm', ...
'MaxEpochs',8, ...
'MiniBatchSize', 1000 , ...
'ValidationData',val_X,val_Y, ...
'ValidationFrequency',30, ...
'ValidationPatience',5, ...
'Verbose',true, ...
'Plots','training-progress');
size( training_X )
size( training_Y )
size( val_X )
size( val_Y )
layers
net = trainNetwork(training_X,training_Y,layers,options);
view( net );
pred_Y = predict(net,test_X)
I can't share what X and Y actually are, but the input X is a 3xn double array and the output is Y is a 2xn array which originally came from a Matlab table.
Here is the output:
ans =
3 547993
ans =
2 547993
ans =
3 117427
ans =
2 117427
layers =
9x1 Layer array with layers:
1 '' Sequence Input Sequence input with 3 dimensions
2 '' Fully Connected 16 fully connected layer
3 '' ReLU ReLU
4 '' Fully Connected 8 fully connected layer
5 '' ReLU ReLU
6 '' Fully Connected 4 fully connected layer
7 '' ReLU ReLU
8 '' Fully Connected 2 fully connected layer
9 '' Regression Output mean-squared-error
Training on single CPU.
|======================================================================================================================|
| Epoch | Iteration | Time Elapsed | Mini-batch | Validation | Mini-batch | Validation | Base Learning |
| | | (hh:mm:ss) | RMSE | RMSE | Loss | Loss | Rate |
|======================================================================================================================|
| 1 | 1 | 00:00:02 | 0.88 | 4509.94 | 0.3911 | 1.0170e+07 | 0.0100 |
| 8 | 8 | 00:00:04 | NaN | NaN | NaN | NaN | 0.0100 |
|======================================================================================================================|
Error using view (line 73)
Invalid input arguments
Error in layer (line 85)
view( net );
Clearly something pathological is happening, since the training is almost instantaneous and I can't view the resulting network. Can anyone advise me what I am doing wrong ? Or perhaps give some debugging tips ?
Thanks,
Adam.
matlab neural-network deep-learning regression
matlab neural-network deep-learning regression
edited Mar 22 at 7:46
hbaderts
12k33443
12k33443
asked Mar 21 at 21:37
Adam RoseAdam Rose
111
111
Thanks for sorting out the output formatting !
– Adam Rose
Mar 23 at 19:14
add a comment |
Thanks for sorting out the output formatting !
– Adam Rose
Mar 23 at 19:14
Thanks for sorting out the output formatting !
– Adam Rose
Mar 23 at 19:14
Thanks for sorting out the output formatting !
– Adam Rose
Mar 23 at 19:14
add a comment |
2 Answers
2
active
oldest
votes
There are two problems here: the first one is, that the call view(net) fails. The reason is that view() function only works for network objects. The network class and corresponding methods have been a part of the Neural Network toolbox for years, and are intended for shallow, "classical" neural networks.
Your trained net however is a SeriesNetwork, which is a much newer class, used for Deep Learning. You can not mix functions for network and SeriesNetwork, so consequently view() doesn't work here.
There is a similar function called analyzeNetwork() to graphically view and analyze a deep neural network in the SeriesNetwork format:
analyzeNetwork(net)

The second problem is that the RMSE and the loss are NaN (not-a-number) after the training. The reason for this is difficult to diagnose without your actual data.
One possible reason: You have data containing NaN in the inputs or outputs. You can check this with the isnan() function:
any(isnan(training_X(:)))
If this is not the case, then you could e.g. check the weight and bias initialization or the learning rate.
add a comment |
You also should consider look at the 'InitialLearnRate' parameter in trainingOptions. By default it is 1e-3, it is sometimes necessary to choose a smaller value to avoid the optimization blowing up, like yours currently is.
Another option to look at with regression problems is the 'GradientThreshold' option in trainingOptions. Setting this will use gradient clipping to prevent gradients from exploding during training. This can also be beneficial/necessary in making RMSE optimization behave well.
Yes, I realised there was a problem with the gradient. I switched to the "Adam" algorithm and gave it a schedule for reducing the learning rate. That meant there was reasonable convergence. It still isn't giving me useful results, but I think that's more to do with the data than the algorithm, Thanks a lot for your help !
– Adam Rose
Mar 23 at 19:16
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55289626%2fmatlab-deep-learning-regression%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are two problems here: the first one is, that the call view(net) fails. The reason is that view() function only works for network objects. The network class and corresponding methods have been a part of the Neural Network toolbox for years, and are intended for shallow, "classical" neural networks.
Your trained net however is a SeriesNetwork, which is a much newer class, used for Deep Learning. You can not mix functions for network and SeriesNetwork, so consequently view() doesn't work here.
There is a similar function called analyzeNetwork() to graphically view and analyze a deep neural network in the SeriesNetwork format:
analyzeNetwork(net)

The second problem is that the RMSE and the loss are NaN (not-a-number) after the training. The reason for this is difficult to diagnose without your actual data.
One possible reason: You have data containing NaN in the inputs or outputs. You can check this with the isnan() function:
any(isnan(training_X(:)))
If this is not the case, then you could e.g. check the weight and bias initialization or the learning rate.
add a comment |
There are two problems here: the first one is, that the call view(net) fails. The reason is that view() function only works for network objects. The network class and corresponding methods have been a part of the Neural Network toolbox for years, and are intended for shallow, "classical" neural networks.
Your trained net however is a SeriesNetwork, which is a much newer class, used for Deep Learning. You can not mix functions for network and SeriesNetwork, so consequently view() doesn't work here.
There is a similar function called analyzeNetwork() to graphically view and analyze a deep neural network in the SeriesNetwork format:
analyzeNetwork(net)

The second problem is that the RMSE and the loss are NaN (not-a-number) after the training. The reason for this is difficult to diagnose without your actual data.
One possible reason: You have data containing NaN in the inputs or outputs. You can check this with the isnan() function:
any(isnan(training_X(:)))
If this is not the case, then you could e.g. check the weight and bias initialization or the learning rate.
add a comment |
There are two problems here: the first one is, that the call view(net) fails. The reason is that view() function only works for network objects. The network class and corresponding methods have been a part of the Neural Network toolbox for years, and are intended for shallow, "classical" neural networks.
Your trained net however is a SeriesNetwork, which is a much newer class, used for Deep Learning. You can not mix functions for network and SeriesNetwork, so consequently view() doesn't work here.
There is a similar function called analyzeNetwork() to graphically view and analyze a deep neural network in the SeriesNetwork format:
analyzeNetwork(net)

The second problem is that the RMSE and the loss are NaN (not-a-number) after the training. The reason for this is difficult to diagnose without your actual data.
One possible reason: You have data containing NaN in the inputs or outputs. You can check this with the isnan() function:
any(isnan(training_X(:)))
If this is not the case, then you could e.g. check the weight and bias initialization or the learning rate.
There are two problems here: the first one is, that the call view(net) fails. The reason is that view() function only works for network objects. The network class and corresponding methods have been a part of the Neural Network toolbox for years, and are intended for shallow, "classical" neural networks.
Your trained net however is a SeriesNetwork, which is a much newer class, used for Deep Learning. You can not mix functions for network and SeriesNetwork, so consequently view() doesn't work here.
There is a similar function called analyzeNetwork() to graphically view and analyze a deep neural network in the SeriesNetwork format:
analyzeNetwork(net)

The second problem is that the RMSE and the loss are NaN (not-a-number) after the training. The reason for this is difficult to diagnose without your actual data.
One possible reason: You have data containing NaN in the inputs or outputs. You can check this with the isnan() function:
any(isnan(training_X(:)))
If this is not the case, then you could e.g. check the weight and bias initialization or the learning rate.
answered Mar 22 at 7:52
hbadertshbaderts
12k33443
12k33443
add a comment |
add a comment |
You also should consider look at the 'InitialLearnRate' parameter in trainingOptions. By default it is 1e-3, it is sometimes necessary to choose a smaller value to avoid the optimization blowing up, like yours currently is.
Another option to look at with regression problems is the 'GradientThreshold' option in trainingOptions. Setting this will use gradient clipping to prevent gradients from exploding during training. This can also be beneficial/necessary in making RMSE optimization behave well.
Yes, I realised there was a problem with the gradient. I switched to the "Adam" algorithm and gave it a schedule for reducing the learning rate. That meant there was reasonable convergence. It still isn't giving me useful results, but I think that's more to do with the data than the algorithm, Thanks a lot for your help !
– Adam Rose
Mar 23 at 19:16
add a comment |
You also should consider look at the 'InitialLearnRate' parameter in trainingOptions. By default it is 1e-3, it is sometimes necessary to choose a smaller value to avoid the optimization blowing up, like yours currently is.
Another option to look at with regression problems is the 'GradientThreshold' option in trainingOptions. Setting this will use gradient clipping to prevent gradients from exploding during training. This can also be beneficial/necessary in making RMSE optimization behave well.
Yes, I realised there was a problem with the gradient. I switched to the "Adam" algorithm and gave it a schedule for reducing the learning rate. That meant there was reasonable convergence. It still isn't giving me useful results, but I think that's more to do with the data than the algorithm, Thanks a lot for your help !
– Adam Rose
Mar 23 at 19:16
add a comment |
You also should consider look at the 'InitialLearnRate' parameter in trainingOptions. By default it is 1e-3, it is sometimes necessary to choose a smaller value to avoid the optimization blowing up, like yours currently is.
Another option to look at with regression problems is the 'GradientThreshold' option in trainingOptions. Setting this will use gradient clipping to prevent gradients from exploding during training. This can also be beneficial/necessary in making RMSE optimization behave well.
You also should consider look at the 'InitialLearnRate' parameter in trainingOptions. By default it is 1e-3, it is sometimes necessary to choose a smaller value to avoid the optimization blowing up, like yours currently is.
Another option to look at with regression problems is the 'GradientThreshold' option in trainingOptions. Setting this will use gradient clipping to prevent gradients from exploding during training. This can also be beneficial/necessary in making RMSE optimization behave well.
answered Mar 22 at 17:48
Alex TaylorAlex Taylor
6691513
6691513
Yes, I realised there was a problem with the gradient. I switched to the "Adam" algorithm and gave it a schedule for reducing the learning rate. That meant there was reasonable convergence. It still isn't giving me useful results, but I think that's more to do with the data than the algorithm, Thanks a lot for your help !
– Adam Rose
Mar 23 at 19:16
add a comment |
Yes, I realised there was a problem with the gradient. I switched to the "Adam" algorithm and gave it a schedule for reducing the learning rate. That meant there was reasonable convergence. It still isn't giving me useful results, but I think that's more to do with the data than the algorithm, Thanks a lot for your help !
– Adam Rose
Mar 23 at 19:16
Yes, I realised there was a problem with the gradient. I switched to the "Adam" algorithm and gave it a schedule for reducing the learning rate. That meant there was reasonable convergence. It still isn't giving me useful results, but I think that's more to do with the data than the algorithm, Thanks a lot for your help !
– Adam Rose
Mar 23 at 19:16
Yes, I realised there was a problem with the gradient. I switched to the "Adam" algorithm and gave it a schedule for reducing the learning rate. That meant there was reasonable convergence. It still isn't giving me useful results, but I think that's more to do with the data than the algorithm, Thanks a lot for your help !
– Adam Rose
Mar 23 at 19:16
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55289626%2fmatlab-deep-learning-regression%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Thanks for sorting out the output formatting !
– Adam Rose
Mar 23 at 19:14