kfoldxcv_grid: k-fold cross validation plot

View source: R/kfold_xval_charts.R

kfoldxcv_gridR Documentation

k-fold cross validation plot

Description

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

Usage

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. This object has no output slots. See chart_plot in the struct package to plot this chart object.

Inheritance

A kfoldxcv_grid object inherits the following struct classes:

⁠[kfoldxcv_grid]⁠ >> ⁠[chart]⁠ >> ⁠[struct_class]⁠

Examples

M = kfoldxcv_grid(
      factor_name = "V1",
      level = "level_1")

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)


computational-metabolomics/structtoolbox documentation built on July 2, 2024, 10:46 p.m.