Description Usage Arguments Details Value Examples
This function trains the a machine learning model on the training data
1 2 3 4 5 |
siamcat |
object of class siamcat-class |
method |
string, specifies the type of model to be trained, may be one
of these: |
stratify |
boolean, should the folds in the internal cross-validation be
stratified?, defaults to |
modsel.crit |
list, specifies the model selection criterion during
internal cross-validation, may contain these: |
min.nonzero.coeff |
integer number of minimum nonzero coefficients that
should be present in the model (only for |
param.set |
a list of extra parameters for mlr run, may contain:
Defaults to |
perform.fs |
boolean, should feature selection be performed?
Defaults to |
param.fs |
a list of parameters for the feature selection, must contain:
See Details for more information.
Defaults to |
verbose |
control output: |
This functions performs the training of the machine learning model
and functions as an interface to the mlr
-package.
The function expects a siamcat-class-object with a prepared
cross-validation (see create.data.split) in the
data_split
-slot of the object. It then trains a model for
each fold of the datasplit.
For the machine learning methods that require additional
hyperparameters (e.g. lasso_ll
), the optimal hyperparameters
are tuned with the function tuneParams within the
mlr
-package.
The methods 'lasso'
, 'enet'
, and 'ridge'
are
implemented as mlr-taks using the 'classif.cvglmnet'
Learner,
'lasso_ll'
and 'ridge_ll'
use the
'classif.LiblineaRL1LogReg'
and the
'classif.LiblineaRL2LogReg'
Learners respectively. The
'randomForest'
method is implemented via the
'classif.randomForest'
Learner.
The function can also perform feature selection on each individual fold. At the moment, three methods for feature selection are implemented:
'AUC'
computes the Area Under the Receiver Operating
Characteristics Curve for each single feature and selects the top
param.fs$thres.fs
, e.g. 100 features
'FC'
computes the generalized Fold Change (see
check.associations) for each feature and likewise selects the
top param.fs$thres.fs
, e.g. 100 features
Wilcoxon
computes the p-Value for each single feature with
the Wilcoxon test and selects features with a p-Value smaller than
param.fs$thres.fs
object of class siamcat-class with added model_list
1 2 3 | data(siamcat_example)
# simple working example
siamcat_validated <- train.model(siamcat_example, method='lasso')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.