kfoldxcv_grid: k-fold cross validation plot

Description Usage Arguments Value Examples

View source: R/kfold_xval_charts.R

Description

A graphic for visualising the true class and the predicted class of samples in all groups for all cross-validation folds.

Usage

1
kfoldxcv_grid(factor_name, level, ...)

Arguments

factor_name

(character) The name of a sample-meta column to use.

level

(character) The level/group to plot.

...

Additional slots and values passed to struct_class.

Value

A kfoldxcv_grid object.

Examples

1
2
3
4
5
6
7
D = iris_DatasetExperiment()
I = kfold_xval(factor_name='Species') *
    (mean_centre() + PLSDA(factor_name='Species'))
I = run(I,D,balanced_accuracy())

C = kfoldxcv_grid(factor_name='Species',level='setosa')
chart_plot(C,I)

structToolbox documentation built on Nov. 8, 2020, 6:54 p.m.