Description Usage Arguments Examples
This function takes in a gradient descent model object and a data set, returns the prediction based on the model.
1 2 |
object |
A gradient descent model object |
... |
An input dataset which we need prediction of. |
1 2 3 4 | library(palmerpenguins)
data(penguins)
my_fit =gradient_descent(bill_length_mm ~ ., data = penguins[,-8],alpha=0.1,num_iters=1000)
my_gd_predict = predict.gd_object(my_fit,penguins[,-8])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.