predict.gd_object: Prediction based on a gradient descent object

Description Usage Arguments Examples

Description

This function takes in a gradient descent model object and a data set, returns the prediction based on the model.

Usage

1
2
## S3 method for class 'gd_object'
predict(object, ...)

Arguments

object

A gradient descent model object

...

An input dataset which we need prediction of.

Examples

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])

nixgank-wang/bis557 documentation built on Dec. 26, 2020, 9:54 p.m.