stacking_regressor: Function to create the stacking model

Description Usage Arguments Value

View source: R/stacking_regressor.R

Description

This function fits a stacking regression model from the prediction of the previous one

Usage

1
2
3
4
stacking_regressor(pred_tr = abs.alpha.power.res$pred_tr,
  pred_te = abs.alpha.power.res$pred_te,
  y_test = abs.alpha.power.res$y_test,
  y_train = abs.alpha.power.res$y_train)

Arguments

pred_tr

is a list containing the vector of predictions for the training set

pred_te

is a list containing the vector of predictions for the test set

y_test

is the vector containing the response values for the test

y_train

is the vector containing the response values for the training

Value

an list containing the forllowing objects,

fit

the fitted stacked model

yhat_test

vector of prediction on the test set

yhat_train

vector of prediction on the training set

Metrics

Named vector with internal and external validation metrics


angy89/hyQSAR documentation built on Sept. 24, 2019, 7:31 a.m.