View source: R/sidatunerange.R
sidatunerange | R Documentation |
Sida function to provide tuning parameter grid values for each view, not including covariates, if available. It is recommended to use this to get lower and upper bounds of tuning parameters for each view that can be used in sida. This function is called by cvSIDA to select optimal tuning parameters.
sidatunerange(Xdata=Xdata,Y=Y,ngrid=8,standardize=TRUE,weight=0.5,withCov=FALSE)
Xdata |
A list with each entry containing each n\times p_d training view, where d =1,...,D views. Rows are samples and columns are variables. If covariates are available, they should be included as a separate view, and set as the last dataset. For binary or categorical covariates (assumes no ordering), we suggest the use of indicator variables. |
Y |
n \times 1 vector of class membership. Same size as the number of training samples. |
ngrid |
Number of grid points for tuning parameters. |
standardize |
TRUE or FALSE. If TRUE, data will be normalized to have mean zero and variance one for each variable. Default is TRUE. |
weight |
Balances separation and association. Default is 0.5. |
withCov |
TRUE or FALSE if covariates are available. If TRUE, set all covariates as one dataset and should be the last dataset. For binary and categorical variables, use indicator matrices/vectors. Default is FALSE. |
The function will return an R object with grid values for each data, not including covariates, if available. To see the results, use the “$" operator.
Tauvec |
grid values for each data, not including covariates, if available. |
Sandra E. Safo, Eun Jeong Min, and Lillian Haine (2019) , Sparse Linear Discriminant Analysis for Multi-view Structured Data, submitted
sida
## see examples in sida
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.