2019-08-30 19:16:52 +00:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
% Please edit documentation in R/gradient.R
|
|
|
|
\name{grad}
|
|
|
|
\alias{grad}
|
|
|
|
\title{Compute get gradient of `L(V)` given a dataset `X`.}
|
|
|
|
\usage{
|
2019-09-02 19:07:56 +00:00
|
|
|
grad(X, Y, V, h, loss.out = FALSE, loss.only = FALSE,
|
|
|
|
persistent = FALSE)
|
2019-08-30 19:16:52 +00:00
|
|
|
}
|
|
|
|
\arguments{
|
|
|
|
\item{X}{Data matrix.}
|
|
|
|
|
|
|
|
\item{Y}{Responce.}
|
|
|
|
|
|
|
|
\item{V}{Position to compute the gradient at, aka point on Stiefl manifold.}
|
|
|
|
|
|
|
|
\item{h}{Bandwidth}
|
|
|
|
|
2019-09-02 19:07:56 +00:00
|
|
|
\item{loss.out}{Iff \code{TRUE} loss will be written to parent environment.}
|
|
|
|
|
2019-08-30 19:16:52 +00:00
|
|
|
\item{loss.only}{Boolean to only compute the loss, of \code{TRUE} a single
|
|
|
|
value loss is returned and \code{envir} is ignored.}
|
2019-09-02 19:07:56 +00:00
|
|
|
|
|
|
|
\item{persistent}{Determines if data indices and dependent calculations shall
|
|
|
|
be reused from the parent environment. ATTENTION: Do NOT set this flag, only
|
|
|
|
intended for internal usage by carefully aligned functions!}
|
2019-08-30 19:16:52 +00:00
|
|
|
}
|
|
|
|
\description{
|
|
|
|
Compute get gradient of `L(V)` given a dataset `X`.
|
|
|
|
}
|
|
|
|
\keyword{internal}
|