Machine Learning Univariate Linear Regression Model

Univariate Linear Regression Model

Number of samples m Input variable x Output variable y Training sample (x, y) The i-th training sample ( , )

Hypothetical Function:         Model Parameters

 

Cost function:

 

optimize the target:

 

algorithm:

1. Gradient descent

Specific solution:

2. Normal equation method

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324666336&siteId=291194637