Description Usage Arguments Value Examples
View source: R/tdmGeneralUtils.r
Make a prediction with objects of class TDMenvir
, TDMclassifier
,
TDMregressor
. The prediction is based on the (last) model trained during
unbiasedRun
.
1 2 3 4 5 6 7 8 |
object |
an object of class |
... |
arguments passed on to the model's predict function. Usually the first argument of |
a vector with length nrow(newdata)
containing the new predictions.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
## This example requires that demo04cpu.r is executed first (it will write demo04cpu.RData)
path <- paste(find.package("TDMR"), "demo01cpu/",sep="/");
tdm <- list( filenameEnvT="demo04cpu.RData" ); # file with environment envT
load(paste(path,tdm$filenameEnvT,sep="/"));
# take only the first 15 records:
newdata=read.csv2(file=paste(path,"data/cpu.csv", sep=""), dec=".")[1:15,];
z=predict(envT,newdata);
print(z);
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.