Description Usage Arguments Value Note Author(s) See Also Examples
Read the best solution of a parameter-tuning run from envT$bst
,
execute with these best parameters the function tdm$mainFunc
(usually a classification or
regression machine learning task), to see
whether the result quality is reproducible on independent test data or on independently trained models.
1 2 3 4 5 6 7 8 | unbiasedRun(
confFile,
envT,
dataObj = NULL,
umode = "RSUB",
withParams = FALSE,
tdm = NULL
)
|
confFile |
the configuration name, e.g. |
envT |
environment, from which we need the objects
|
dataObj |
[NULL] contains the pre-fetched data with training-set and test-set part.
If NULL, set it to |
umode |
— deprecated as argument to unbiasedRun — , use the division provided
in
|
withParams |
[FALSE] if =TRUE, add columns with best parameters to data frame |
tdm |
a list with TDM settings from which we use here the elements
The defaults in '[...]' are set by |
envT
the augmdented environment envT, with the following items updated
finals |
the final results |
tdm |
the updated list with TDM settings |
results |
last results (from last unbiased training) |
Side Effects:
The list result
, an object of class TDMclassifier
or TDMregressor
as returned
from tdm$mainFunc
is written onto envT$result
.
If envT$spotConfig
is NULL, it is constructed from confFile.
spotConfig$opts
(list with all parameter settings for the DM task) has to be non-NULL.
Wolfgang Konen, THK, 2013 - 2018
If envT$bst or envT$res is NULL, try to read it from the file (the filename is inferred envT$spotConfig. If this is NULL, it is constructed from confFile). We try to find the files for envT$bst or envT$res in dir envT$theTuner).
tdmBigLoop
, TDMclassifier
, TDMregressor
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Load the best results obtained in a prior tuning for the configuration "sonar_04.conf"
## with tuning method "spot". The result envT from a prior run of tdmBigLoop with this .conf
## is read from demo02sonar/demoSonar.RData.
## Run task main_sonar again with these best parameters, using the default settings from
## tdmDefaultsFill: umode="RSUB", tdm$nrun=5 and tdm$TST.testFrac=0.2.
path = paste(find.package("TDMR"), "demo02sonar",sep="/")
envT = tdmEnvTLoad("demoSonar.RData",path); # loads envT
source(paste(path,"main_sonar.r",sep="/"));
envT$tdm$optsVerbosity=1;
envT$sCList[[1]]$opts$path=path; # overwrite a possibly older stored path
envT$spotConfig <- envT$sCList[[1]];
dataObj <- tdmReadTaskData(envT,envT$tdm);
envT <- unbiasedRun("sonar_04.conf",envT,dataObj,tdm=envT$tdm);
print(envT$finals);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.