CrossValidation: Cross validation

Description Usage Arguments Value Author(s) Examples

View source: R/CrossValidation.R

Description

Performance evaluation of the integrative random forest-based gene prioritization algorithm RafSee in distinguishing positives and negatives.

Usage

1
2
  CrossValidation(seed = 1, featureMat, positives, 
                  negatives, cross = 10, cpus = 1)

Arguments

seed

An integer number specifying a random seed for randomly partitioning dataset.

featureMat

A numeric feature matrix.

positives

A character vector representing positive samples.

negatives

A character vector representing negative samples.

cross

Number of fold for cross validation.

cpus

An integer number specifying the number of cpus to be used for parallel computing.

Value

A list containing results from each fold cross validation including:

positives.train

positive samples used to train prediction model.

negatives.train

negative samples used to train prediction model.

positives.test

positive samples used to test prediction model.

negatives.test

negative samples used to test prediction model.

positives.train.score

scores of positive samples in training dataset predicted by random foreste.

negatives.train.score

scores of negative samples in training dataset predicted by random forest.

positives.test.score

scores of positive samples in testing dataset predicted by random forest.

negatives.test.score

scores of negative samples in testing dataset predicted by random forest.

train.AUC

AUC value of random forest on training dataset.

test.AUC

AUC value of random forest on testing dataset.s

Author(s)

Jingjing Zhai, Chuang Ma

Examples

1
2
3
4
5
6
7
8
  ## Not run: 
    positives <- c("AT1G01060", "AT1G09530", "AT1G09570", "AT1G12610")
    cvRes <- CrossValidation(featureMat = featureMat, positives = positives, 
                      negatives  = negatives, cpus = 1)
    ## featureMat can be calculated by function FeatureExtract
    ## negatives can be calculated by function selectNegSamples
  
## End(Not run)

cma2015/RAP documentation built on Aug. 18, 2019, 8:02 p.m.