train_basemodel_core {stacking}R Documentation

Internal function called by train_basemodel

Description

Training base models of stacking. This function is called by train_basemodel and designed for the internal use of train_basemodel.

Usage

train_basemodel_core(repeat.parLapply, division, l, core, x, y, exclude)

Arguments

repeat.parLapply

A scalar indicating the number of repeats of parallel computation. If the number of base models is 10 and 5 cores are used for computation, repeat.parLapply is 2.

division

A matrix of which the number of columns is equal to repeat.parLapply. The elements are integers indicating the base models. For example, division[, 1] indicates the base models trained in the first calculation round.

l

A nested list indicating the training method and hyperparameters. The length is the number of base models. Each element is a list consisting of two elements, method and hyp, which are strings indicating the training method and a data frame including hyperparameter values, respectively. The number of columns of the data frame is the number of hyperparameters of the method, and the hyperparameter names should be specified as the column names.

core

Number of cores for parallel processing

x

An N x P matrix of explanatory variables where N is the number of samples and P is the number of variables

y

A length N Vector of objective variables

exclude

A vector of integers indicating the samples excluded from training as testing data

Details

This function is designed for the internal use and not for direct use by users. Thus, detaled usages are not provided.

Value

A list containing the training results of base models.

Author(s)

Taichi Nukui, Akio Onogi

See Also

train_basemodel


[Package stacking version 0.1.2 Index]