View source: R/sidanettunerange.R
sidanettunerange | R Documentation |
Sidanet 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 sidanet. This function is called by cvSIDANet to select optimal tuning parameters.
sidanettunerange(Xdata=Xdata,Y=Y,ngrid=8,standardize=TRUE,weight=0.5,eta=0.5, myedges=myedges,myedgeweight=myedgeweight,withCov=FALSE)
Xdata |
A list with each entry containing training views of size n \times p_d, 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. |
eta |
Balances the selection of network, and variables within network. Default is 0.5. |
myedges |
A list with each entry containing a M_d\times 2 matrix of edge information for each view. If a view has no edge information, set to 0; this will default to SIDA. If covariates are available as a view (Dth view), the edge information should be set to 0. |
myedgeweight |
A list with each entry containing a M_d\times 1 vector of weight information for each view. If a view has no weight information, set to 0; this will use the Laplacian of an unweighted graph. If covariates are available as a view (Dth view), the weight information should be set to 0. |
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
sidanet
# see examples in sidanet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.