Description Usage Arguments Value Examples
View source: R/StatComp21088R.R
Batch gradient descent algorithm.The idea is to use all samples per iteration to update the parameters.
1 | BGD(input_data, real_result, alpha, theta)
|
input_data |
Input_data matrix after adding constant 1 column |
real_result |
Real_result vector whose length is equal to the column number of data. |
alpha |
Learning rate |
theta |
The initial parameters of linear regression |
theta after iteration theta
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.