man/split_data.Rd
883f7f27
 % Generated by roxygen2: do not edit by hand
 % Please edit documentation in R/split_data_class.R
56a019fe
 \name{split_data}
883f7f27
 \alias{split_data}
d0f81a51
 \title{Split data}
56a019fe
 \usage{
6daf6f4e
 split_data(p_train, ...)
56a019fe
 }
 \arguments{
d0f81a51
 \item{p_train}{(numeric) The proportion of samples selected for the training set.}
a110b7e7
 
d0f81a51
 \item{...}{Additional slots and values passed to \code{struct_class}.}
56a019fe
 }
7af536f9
 \value{
5d51daa4
 A  \code{split_data} object with the following \code{output} slots:
 \tabular{ll}{
 \code{training} \tab          (DatasetExperiment) A DatasetExperiment object containing samples selected for the training set. \cr
 \code{testing} \tab          (DatasetExperiment) A DatasetExperiment object containing samples selected for the testing set. \cr
 }
7af536f9
 }
883f7f27
 \description{
d0f81a51
 The data matrix is divided into two subsets.A predefined proportion of the samples are randomly selected for a training set, and the remaining samples are used for the test set.
883f7f27
 }
09388373
 \section{Inheritance}{
 
 A \code{split_data} object inherits the following \code{struct} classes: \cr\cr
55546c0b
 \verb{[split_data]} >> \verb{[model]} >> \verb{[struct_class]}
09388373
 }
 
5dcc4dc2
 \examples{
09388373
 M = split_data(
       p_train = 0.75)
 
6daf6f4e
 M = split_data(p_train=0.75)
5dcc4dc2
 
 }