Accessory Function for Cross-validation

Share:

Description

Randomly partition a dataset into k approximately equally sized partitions.

Usage

1
grandpart(dataset, k)

Arguments

dataset

a dataset for partitioning.

k

the number of partitions; the cross-validation fold number.

Value

Returns a list containing the partitioned datasets.

Note

This function is not designed to be called directly, but acts within kcrossval