ml.cv: Multicore l.cv for heavy tasks

Description Usage Arguments Value

View source: R/ml.cv.R

Description

Multicore l.cv for heavy tasks

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ml.cv(
  exprs,
  df,
  family,
  thresh = FALSE,
  statistic = "Accuracy",
  number = 10,
  repeats = 10,
  cl = detectCores()
)

Arguments

exprs

List of GLM formulas.

df

Data.frame.

family

Object : a description of the error distribution.

thresh

If TRUE, an optimal threshold is found based on the 'statistic' criterion.

statistic

A character indicating which statistic to maximize. Default is "Accuracy". You can use c('Sensitivity', 'Specificity', 'Pos Pred Value', 'Neg Pred Value', 'Precision', 'Accuracy', 'Balanced Accuracy', 'F1', 'Detection Rate', 'Detection Prevalence', 'Prevalence', 'Recall', 'Kappa', 'J', 'Dist').

number

The number of folds.

repeats

The number of complete sets of folds to compute.

cl

Number of CPU cores on the current host.

Value

Different accuracy measures for all formulas in 'exprs'.


anthonyyazdani/OOS documentation built on Sept. 5, 2020, 12:54 a.m.