View source: R/kfold_xval_charts.R
kfoldxcv_grid | R Documentation |
A graphic for visualising the true class and the predicted class of samples in all groups for all cross-validation folds.
kfoldxcv_grid(factor_name, level, ...)
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 |
A
kfoldxcv_grid
object. This object has no output
slots.
See chart_plot
in the struct
package to plot this chart object.
A kfoldxcv_grid
object inherits the following struct
classes:
[kfoldxcv_grid]
>> [chart]
>> [struct_class]
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.