forked from tidymodels/parsnip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpls.Rd
52 lines (45 loc) · 1.67 KB
/
pls.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pls.R
\name{pls}
\alias{pls}
\title{Partial least squares (PLS)}
\usage{
pls(
mode = "unknown",
predictor_prop = NULL,
num_comp = NULL,
engine = "mixOmics"
)
}
\arguments{
\item{mode}{A single character string for the prediction outcome mode.
Possible values for this model are "unknown", "regression", or
"classification".}
\item{predictor_prop}{The maximum proportion of original predictors that can
have \emph{non-zero} coefficients for each PLS component (via regularization).
This value is used for all PLS components for X.}
\item{num_comp}{The number of PLS components to retain.}
\item{engine}{A single character string specifying what computational engine
to use for fitting.}
}
\description{
\code{pls()} defines a partial least squares model that uses latent variables to
model the data. It is similar to a supervised version of principal component.
There are different ways to fit this model. The method of estimation is
chosen by setting the model \emph{engine}.
\Sexpr[stage=render,results=rd]{parsnip:::make_engine_list("pls")}
More information on how \pkg{parsnip} is used for modeling is at
\url{https://www.tidymodels.org/}.
}
\details{
This function only defines what \emph{type} of model is being fit. Once an engine
is specified, the \emph{method} to fit the model is also defined.
The model is not trained or fit until the \code{\link[=fit.model_spec]{fit.model_spec()}} function is used
with the data.
}
\references{
\url{https://www.tidymodels.org}, \href{https://www.tmwr.org/}{\emph{Tidy Models with R}}
}
\seealso{
\Sexpr[stage=render,results=rd]{parsnip:::make_seealso_list("pls")}
}