GET_IdxQ_opt: Optimal 'Q' index

Description Usage Arguments Value

View source: R/fdaAuxFunctions.R

Description

Compute index of best performing number of PCA/PLS components Q from the cross-validation results.

Usage

1
GET_IdxQ_opt(perf, model, threshold)

Arguments

perf

Performance matrix.

model

Model type.

threshold

Threshold for choosing the optimal parameters. If threshold=0, then Q is the value that minimises RMSD (for Regression) or maximises AUC (for Classification). If threshold>0, then Q is the smallest value which gives a RMSD/AUC within a margin threshold of the optimal RMSD/AUC.

Value

The index of the best performing parameter Q.


pmesperanca/mlevcm documentation built on March 17, 2021, 10:03 p.m.