About 74,900 results
Open links in new tab
  1. gradient descent using python and numpy - Stack Overflow

    Jul 22, 2013 · Below you can find my implementation of gradient descent for linear regression problem. At first, you calculate gradient like X.T * (X * w - y) / N and update your current theta …

  2. python - Gradient descent for ridge regression - Stack Overflow

    Jan 26, 2021 · I'm trying to write a code that return the parameters for ridge regression using gradient descent. Ridge regression is defined as Where, L is the loss (or cost) function. w are …

  3. Is there a Python library where I can import a gradient descent ...

    May 8, 2018 · One way to do gradient descent in Python is to code it myself. However, given how popular a concept it is in machine learning, I was wondering if there is a Python library that I …

  4. How to illustrate a 3D graph of gradient descent using python ...

    Nov 21, 2020 · I am having trouble with plotting a 3d graph for gradient descent using python's matplotlib. The commented code in the gradient_descent function was what I tried but doesn't …

  5. Gradient Descent with constraints (lagrange multipliers)

    by doing gradient descent on x while doing gradient 'ascend' on b, you will finally converge to a stationary point of L(x, b), which is a local minima of f(x) under the constraint g(x)=0. Penalty …

  6. Andrew Ng's ML course excercise using python: gradient descent

    Apr 29, 2020 · I have been trying to implement the solutions of Andrew Ng's exercises in python and not sure why I cannot make the gradient descent work properly. This is the code I used for …

  7. Multivariate Linear Regression using gradient descent

    Dec 13, 2020 · I am learning Multivariate Linear Regression using gradient descent. I have written below python code: import pandas as pd import numpy as np x1 = …

  8. python - Multi variable gradient descent - Stack Overflow

    Jun 25, 2014 · I am learning gradient descent for calculating coefficients. Below is what I am doing: #!/usr/bin/Python import numpy as np # m denotes the number of examples here, not …

  9. numpy - Implement gradient descent in python - Stack Overflow

    Jul 4, 2019 · I am trying to implement gradient descent in python. Though my code is returning result by I think results I am getting are completely wrong. Here is the code I have written: …

  10. machine learning - Gradient Descent in Python - Stack Overflow

    Jul 12, 2015 · now gradient descent will always give the steepest ascent and will always lead us to a minimum value when the cost function is concave as there will be only one optimum (,ie; …