evalTuningParam {TPLSr}R Documentation

Evaluating cross-validation performance of a TPLS_cv model at compvec and threshvec

Description

Evaluating cross-validation performance of a TPLS_cv model at compvec and threshvec

Usage

evalTuningParam(
  TPLScvmdl,
  type = c("Pearson", "negMSE", "ACC", "AUC", "LLbinary", "Spearman"),
  X,
  Y,
  compvec,
  threshvec,
  subfold = NULL
)

Arguments

TPLScvmdl

TPLS_cv model created from TPLS_cv

type

CV performance metric type. One of LLbinary, negMSE, Pearson, Spearman, AUC, ACC.

X

The same X as used in TPLScvmdl.

Y

The SAME Y as used in TPLScvmdl.

compvec

Vector of number of components to test in cross-validation.

threshvec

Vector of threshold level (0 ~ 1) to test in cross-validation.

subfold

(Optional) vector of subdivision within testing fold to calculate performance. For example scan run division within subject.

Value

A evalTuningParam object that contains the following attributes.


[Package TPLSr version 1.0.4 Index]