cv_lr_experiment: Repeat the CV experiment for logistic regression with...

Description Usage Arguments Value

View source: R/kohavi.R

Description

cv_lr_experiment.

Usage

1
2
3
4
5
6
7
8
9
cv_lr_experiment(
  dataset_name,
  dataset,
  nsamples,
  folds,
  times = 50,
  penalties = my_penalty_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

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.