best.models {StabPerf}R Documentation

Score different models to find the best.

Description

Scores the sampled feature-selectors and feature-selector/classifier-combination to find the best model

Usage

best.models(fold, checkpointdir=file.path(getOption("edaprakt.tmpdir"), "checkpoints"), n=Inf)

Arguments

fold Numeric. The fold that is assessed. Use cv=0 if the full dataset shall be analysed.
checkpointdir Character. The directory with the calculated checkpoints that are used for assessment.
n The number of best combinations model to return.

Details

All feature-checkpoints are read and the feature stability score is calculated and divided by log2 of the median length of the signatures (fss). The selector/classifier checkpoints are read to compute the median and mad of the sampled confusion matrices' accuracies. The final score is derived as follows: (1+mad)*(1-median)*(1-fss). The scores are ordered increasing. A comprehensive statistic is saved in ${tmpdir}/scores/fold_${fold}_scores.txt

Value

ranking List. A list with the entries scores, selectors and classifiers ordered increasing (best first) by scores. The selectors and classifiers are indices of the global list.

See Also

best.model, feature.stability.score, accuracy

Examples

ranking <- best.models(fold=0, n=3)

[Package StabPerf version 0.5 Index]