cv_experiment: Estimate the accuracy of models on a dataset using...

Description Usage Arguments Value

View source: R/kohavi.R

Description

cv_experiment tests the effectiveness of cross-validation for estimating the accuracy of different models.

Usage

1
2
3
4
5
6
7
8
9
cv_experiment(
  dataset_name,
  dataset,
  nsamples,
  folds,
  times = 50,
  models = my_model_list,
  seed = 2021
)

Arguments

dataset_name

a unique string identifying the dataset

dataset

the data set to use

nsamples

how large the training set should be

folds

number of folds to use, with a -1 meaning leave-one-out

times

how many times to train and test the models, default 500

models

the models to train

seed

random seed

Value

a matrix of accuracies, where each row corresponds to a model


tfglynn/sdsu-research-code documentation built on Jan. 31, 2022, 12:04 a.m.