Description Usage Arguments Details Value Author(s) References See Also Examples
This function can be used to join several objects of class ComparisonResults
into a single object. The merge is carried out assuming that there is
something in common between the objects (e.g. all use the same
workflows on different tasks), and that the user specifies which
property should be used for the merging process.
1 | mergeEstimationRes(..., by = "tasks")
|
... |
The |
by |
The dimension of the |
The objects of class ComparisonResults
(type "class?ComparisonResults"
for details) contain several information on the results of an
estimation expriment for several workflows on several predictive
tasks. Sometimes, when you are trying too many workflows on too many
tasks, it is convinient to run these variants on different calls to
the function performanceEstimation
. After all calls are
completed we frequently want to have all results on a single
object. This is the objective of the current function: allow you to
merge these different ComparisonResults
objects
into a single one. For being mergeable the objects need to have things
in common otherwise it makes no sense to merge them. For instance, we
could split our very large experiment by calling
performanceEstimation
with different tasks, although the
rest (the workflows and the estimation task) stays the same. See the
Examples section for some illustrations.
The result of this function is a ComparisonResults
object.
Luis Torgo ltorgo@dcc.fc.up.pt
Torgo, L. (2014) An Infra-Structure for Performance Estimation and Experimental Comparison of Predictive Models in R. arXiv:1412.0436 [cs.MS] http://arxiv.org/abs/1412.0436
performanceEstimation
, ComparisonResults
, subset
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | ## Not run:
## Run some experiments with the swiss data and two different
## prediction models
data(swiss)
exp1 <- performanceEstimation(
PredTask(Infant.Mortality ~ .,swiss),
workflowVariants(learner="svm",
learner.pars=list(cost=c(1,10),gamma=c(0.01,0.5))),
EstimationTask("mse")
)
exp2 <- performanceEstimation(
PredTask(Infant.Mortality ~ .,swiss),
Workflow(learner="lm"),
EstimationTask("mse")
)
## joining the two experiments by workflows
all <- mergeEstimationRes(exp1,exp2,by="workflows")
topPerformers(all) # check the best results
## now an example by adding new metrics
exp3 <- performanceEstimation(
PredTask(Infant.Mortality ~ .,swiss),
Workflow(learner="lm"),
EstimationTask(metrics=c("mae","totTime"))
)
allLM <- mergeEstimationRes(exp2,exp3,by="metrics")
topPerformers(allLM)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.