Why is my regularized gradient descent algorithm for linear regression diverging?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-3
down vote

favorite












I am applying a regularized gradient descent algorithm on a dataset for linear regression. Since there are too many features, I am programming using the matrix notations. Following expression is being used:



GD algorthm



Could you please tell me where I could have gone wrong?







share|cite|improve this question


















  • 1




    Since you don't provide the algorithm, it is impossible to say.
    – AnyAD
    Aug 17 at 13:42










  • I have added the algorithm in image link.
    – Shivam Pande
    Aug 17 at 13:57














up vote
-3
down vote

favorite












I am applying a regularized gradient descent algorithm on a dataset for linear regression. Since there are too many features, I am programming using the matrix notations. Following expression is being used:



GD algorthm



Could you please tell me where I could have gone wrong?







share|cite|improve this question


















  • 1




    Since you don't provide the algorithm, it is impossible to say.
    – AnyAD
    Aug 17 at 13:42










  • I have added the algorithm in image link.
    – Shivam Pande
    Aug 17 at 13:57












up vote
-3
down vote

favorite









up vote
-3
down vote

favorite











I am applying a regularized gradient descent algorithm on a dataset for linear regression. Since there are too many features, I am programming using the matrix notations. Following expression is being used:



GD algorthm



Could you please tell me where I could have gone wrong?







share|cite|improve this question














I am applying a regularized gradient descent algorithm on a dataset for linear regression. Since there are too many features, I am programming using the matrix notations. Following expression is being used:



GD algorthm



Could you please tell me where I could have gone wrong?









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 17 at 13:55

























asked Aug 17 at 13:30









Shivam Pande

12




12







  • 1




    Since you don't provide the algorithm, it is impossible to say.
    – AnyAD
    Aug 17 at 13:42










  • I have added the algorithm in image link.
    – Shivam Pande
    Aug 17 at 13:57












  • 1




    Since you don't provide the algorithm, it is impossible to say.
    – AnyAD
    Aug 17 at 13:42










  • I have added the algorithm in image link.
    – Shivam Pande
    Aug 17 at 13:57







1




1




Since you don't provide the algorithm, it is impossible to say.
– AnyAD
Aug 17 at 13:42




Since you don't provide the algorithm, it is impossible to say.
– AnyAD
Aug 17 at 13:42












I have added the algorithm in image link.
– Shivam Pande
Aug 17 at 13:57




I have added the algorithm in image link.
– Shivam Pande
Aug 17 at 13:57















active

oldest

votes











Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2885774%2fwhy-is-my-regularized-gradient-descent-algorithm-for-linear-regression-diverging%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2885774%2fwhy-is-my-regularized-gradient-descent-algorithm-for-linear-regression-diverging%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

tkz-euclide: tkzDrawCircle[R] not working

How to combine Bézier curves to a surface?

1st Magritte Awards