gradient: Gradient Function

Description Usage Arguments Value Examples

View source: R/Gradient.R

Description

The gradient of a function f, denoted as ∇f, is the collection of all its partial derivatives into a vector

Usage

1
gradient(x, y, theta)

Arguments

x

Matrix of explanatory variables to predict

y

Target Variable Matrix

theta

Coefficient matrix for logistic regression

Value

Returns a gradient vector

Examples

1
gradient(x, y, coef)

FD155/ProjetR documentation built on Dec. 17, 2021, 7:31 p.m.