Learn R Programming

TDMR (version 2.2)

tdmEnvTReport: Make a report plot based on envT

Description

Given the results from a prior tuning run in envT, make a sensitivity plot for this run. If envT$tdm$nrun > 0 then make additionally with the best-performing parameters from the tuning run a new unbiased run on the test data.

Usage

tdmEnvTReport(envT, ind)

Arguments

envT

results from a prior tuning run.

ind

an integer from 1:length(envT$bstGrid): Take the tuning run with index ind.

Value

envT, with data frame finals added, if envT$tdm$nrun > 0.

See Also

tdmEnvTReportSens

Examples

Run this code
# NOT RUN {
           
   ## The best results are read from demo02sonar/demoSonar.RData relative to the TDMR 
   ## package directory.
   path = paste(find.package("TDMR"), "demo02sonar",sep="/");
   envT = tdmEnvTLoad("demoSonar.RData",path);    # loads envT
   source(paste(path,"main_sonar.r",sep="/"));
   envT$tdm$nrun=0;       # =0: don't, >0: do unbiasedRun with opts$NRUN=envT$tdm$nrun
   envT$sCList[[1]]$opts$VERBOSE=1;
   envT <- tdmEnvTReport(envT,1);
   if (!is.null(envT$theFinals)) print(envT$theFinals);

# }

Run the code above in your browser using DataLab