• Skip to primary navigation
  • Skip to content
  • Skip to footer
KYU Note KYU Note
  • Category
  • Tag
  • Home
  • Personal_space
  • Search
    1. Home
    2. /
    3. Ml experiment
    4. /
    5. Stochastic Gradient Descent

    Stochastic Gradient Descent

    July 23, 2025 less than 1 minute read

    Stochastic Gradient Descent

    • Code

    Code

    def update_m_and_c(m, c, g_m, g_c, lr):
    
        updated_m = m - lr * g_m
        updated_c = c - lr * g_c
    
        return updated_m, updated_c
    

    Tags: Machine Learning, Python

    Categories: ML-Experiment

    Updated: July 23, 2025

    Previous Next

    Leave a comment

    You may also enjoy

    Ordinary Least Squares and the Normal Equations

    August 7, 2025 2 minute read

    Ordinary Least Squares and the Normal Equations (Closed Form Solution)

    Cost Function

    July 24, 2025 1 minute read

    Cost Function

    Partial Derivative

    July 19, 2025 less than 1 minute read

    A partial derivative measures how a function changes when only one variable changes and the rest stay fixed.

    Derivative

    July 19, 2025 less than 1 minute read

    Derivative, Differentiate

    • Follow:
    • Email
    • Instagram
    © 2025 woo-kyu. Powered by Jekyll & Minimal Mistakes.